Vector::Size Method

Overload List

#SignatureDescription
1void Size(const int ALength, const bool aIsComplex, const bool aIsDouble) const;Sets the following properties
2TMtxVec *Size(TMtxVecBase *Src, const TMtxFloatPrecision aFloatPrecision) const;
3void Size(const int ALength, const bool aIsComplex) const;
4TMtxVec *Size(TMtxVec *Src) const;Size the object.
5TMtxVec *Size(TMtxVec *Src, bool AComplex) const;Also allows the complex property of the calling object to become of AComplex value instead of Src.Complex value.
6TVec *Size(const int ALength, const TMtxFloatPrecision aFloatPrecision) const;Sets the following properties:
7TVec *Size(const int ALength, TMtxVec *aFloatPrecisionRef) const;
8TVec *Size(const int ALength) const;

Overload 1: void Size(const int ALength, const bool aIsComplex, const bool aIsDouble) const;

Sets the following properties

#NameTypeDescription
1ALengthconst int
2aIsComplexconst bool
3aIsDoubleconst bool
Remarks:
Vec.Length := ALength;
Vec.Complex := AComplex;
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

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

#NameTypeDescription
1SrcTMtxVecBase *
2aFloatPrecisionconst TMtxFloatPrecision
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: void Size(const int ALength, const bool aIsComplex) const;

#NameTypeDescription
1ALengthconst int
2aIsComplexconst bool
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 4: TMtxVec *Size(TMtxVec *Src) const;

Size the object.

#NameTypeDescription
1SrcTMtxVec *
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 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.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 5: TMtxVec *Size(TMtxVec *Src, bool AComplex) const;

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

#NameTypeDescription
1SrcTMtxVec *
2AComplexbool
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.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

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

Sets the following properties:

#NameTypeDescription
1ALengthconst int
2aFloatPrecisionconst TMtxFloatPrecision
Remarks:
Vec.Length := ALength;
Vec.Complex := false;
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 7: TVec *Size(const int ALength, TMtxVec *aFloatPrecisionRef) const;

#NameTypeDescription
1ALengthconst int
2aFloatPrecisionRefTMtxVec *
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 8: TVec *Size(const int ALength) const;

#NameTypeDescription
1ALengthconst int
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler