TVec::Size Method

Overload List

#SignatureDescription
1TMtxVec *Size(TMtxVecBase *Src);Size the object.
2TVec *Size(int ALength, bool AComplex, bool aIsDouble);Sets the size of the vector.
3TVec *Size(int ALength, bool AComplex);Sets the size of the vector.
4TVec *Size(int ALength);Sizes the vector.
5TVec *Size(int ALength, const TMtxFloatPrecision aFloatPrecision);Sets the size of the vector.
6TVec *Size(int ALength, TMtxVec *FloatRef);Sets the size of the vector.
7TMtxVec *Size(TMtxVecBase *Src, bool AComplex);Sets vector size.
8TMtxVec *Size(TMtxVecBase *Src, const TMtxFloatPrecision aFloatPrecision);Sets vector size.

Overload 1: TMtxVec *Size(TMtxVecBase *Src);

Size the object.

#NameTypeDescription
1SrcTMtxVecBase *
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 TVec::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.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: TVec *Size(int ALength, bool AComplex, bool aIsDouble);

Sets the size of the vector.

#NameTypeDescription
1ALengthint
2AComplexbool
3aIsDoublebool
Remarks:

Same as the following code:

if aIsDouble then begin if aComplex then Size(aLength, mvDoubleComplex) else Size(aLength, mvDouble); end else begin if aComplex then Size(aLength, mvSingleComplex) else Size(aLength, mvSingle); end;

Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 3: TVec *Size(int ALength, bool AComplex);

Sets the size of the vector.

#NameTypeDescription
1ALengthint
2AComplexbool
Remarks:

Same as the following code:

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

Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values.

Existing floating point precision is preserved.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 4: TVec *Size(int ALength);

Sizes the vector.

#NameTypeDescription
1ALengthint
Remarks:

Sets the following properties:

Length := ALength; Complex := false;

Existing floating point precision is preserved.

Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 5: TVec *Size(int ALength, const TMtxFloatPrecision aFloatPrecision);

Sets the size of the vector.

#NameTypeDescription
1ALengthint
2aFloatPrecisionconst TMtxFloatPrecision
Remarks:

Same as the following code:

Vec.FloatPrecision := aFloatPrecision; Vec.Length := ALength;

Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 6: TVec *Size(int ALength, TMtxVec *FloatRef);

Sets the size of the vector.

#NameTypeDescription
1ALengthint
2FloatRefTMtxVec *
Remarks:

Same as the following code:

Vec.FloatPrecision := FloatRef.FloatPrecision; Vec.Length := ALength;

Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 7: TMtxVec *Size(TMtxVecBase *Src, bool AComplex);

Sets vector size.

#NameTypeDescription
1SrcTMtxVecBase *
2AComplexbool
Remarks:

Length is set to Src.Length and Complex property to AComplex. Floating point precision is obtained from Src. If Src is integer type (TVecInt, TMtxInt), the existing floating point precision is preserved.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 8: TMtxVec *Size(TMtxVecBase *Src, const TMtxFloatPrecision aFloatPrecision);

Sets vector size.

#NameTypeDescription
1SrcTMtxVecBase *
2aFloatPrecisionconst TMtxFloatPrecision
Remarks:

Length is set to Src.Length and precision is set to aFloatPrecision.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler