Vector.Size Method

Overload List

#SignatureDescription
1TMtxVec Size(TMtxVec Src)Size the object.
2TMtxVec Size(TMtxVec Src, Boolean AComplex)Also allows the complex property of the calling object to become of AComplex value instead of Src.Complex value.
3TVec Size(Int32 ALength, TMtxFloatPrecision aFloatPrecision)Sets the following properties:
4void Size(Int32 ALength, Boolean aIsComplex, Boolean aIsDouble)Sets the following properties

Overload 1: TMtxVec Size(TMtxVec Src)

Size the object.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx

Result: stored in self (calling object), returns self for chaining

Remarks:

Assignes the size of the Src object to the calling object. If the calling object is a TVec object then the Src can be of any type, otherwise TMtx can only obtain size from a TMtx object and TSparseMtx can only obtain size from a TSparseMtx object.

If the calling object and Src are of different types, the complex property can be different, if both objects have a matching Dew.Math.Vector.Length property. In this case only the Complex property of the calling object will changed, while all other properties describing the size of the object (rows, cols, length, nonZeros) will be preserved. This is different from simply setting the Complex property. Changing the Complex property directly would also change the Length, Cols and NonZeros properties.

Overload 2: TMtxVec Size(TMtxVec Src, Boolean AComplex)

Also allows the complex property of the calling object to become of AComplex value instead of Src.Complex value.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2AComplexBoolean

Result: stored in self (calling object), returns self for chaining

Remarks:

It is also possible to pass the calling object as the Src with a different AComplex value. The value of the complex property can be changed without knowing the actual type of the object.

Overload 3: TVec Size(Int32 ALength, TMtxFloatPrecision aFloatPrecision)

Sets the following properties:

#NameTypeDescription
1ALengthInt32
2aFloatPrecisionTMtxFloatPrecision

Result: stored in self (calling object), returns self for chaining

Remarks:
Vec.Length := ALength;
Vec.Complex := false;

Overload 4: void Size(Int32 ALength, Boolean aIsComplex, Boolean aIsDouble)

Sets the following properties

#NameTypeDescription
1ALengthInt32
2aIsComplexBoolean
3aIsDoubleBoolean

Result: stored in self (calling object)

Remarks:
Vec.Length := ALength;
Vec.Complex := AComplex;