TSparseMtx::Size Method

Overload List

#SignatureDescription
1TMtxVec *Size(TMtxVecBase *Src);Size the object.
2TMtxVec *Size(TMtxVecBase *Src, bool AComplex);The size of sparse matrix.
3TMtxVec *Size(TMtxVecBase *Src, const TMtxFloatPrecision aFloatPrecision);Sets sparse matrix size to match Src with new aFloatPrecision.
4void Size(const int RowCount, const int ColCount, const int NonZeroCount, const TMtxFloatPrecision aFloatPrecision);Define sparse matrix size in single pass.
5void Size(const int RowCount, const int ColCount, const int NonZeroCount, const bool AComplex, const bool aIsDouble);
6void Size(const int RowCount, const int ColCount, const int NonZeroCount, const bool IsComplex);

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 TSparseMtx::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: TMtxVec *Size(TMtxVecBase *Src, bool AComplex);

The size of sparse matrix.

#NameTypeDescription
1SrcTMtxVecBase *
2AComplexbool
Remarks:

Defines the calling matrix size to match those of the AMtxVec objects. If AComplex is true, calling sparse matrix TSparseMtx::Complex property is set to true.

Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler

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

Sets sparse matrix size to match Src with new aFloatPrecision.

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

Overload 4: void Size(const int RowCount, const int ColCount, const int NonZeroCount, const TMtxFloatPrecision aFloatPrecision);

Define sparse matrix size in single pass.

#NameTypeDescription
1RowCountconst int
2ColCountconst int
3NonZeroCountconst int
4aFloatPrecisionconst TMtxFloatPrecision
Remarks:

Define the sparse matrix size to RowCount TSparseMtx::Rows, ColCount TSparseMtx::Cols, NonZeroCount non-zero elements (the TSparseMtx::NonZeros property) and define the matrix to be complex if IsComplex is true.

Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler

Overload 5: void Size(const int RowCount, const int ColCount, const int NonZeroCount, const bool AComplex, const bool aIsDouble);

#NameTypeDescription
1RowCountconst int
2ColCountconst int
3NonZeroCountconst int
4AComplexconst bool
5aIsDoubleconst bool
Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler

Overload 6: void Size(const int RowCount, const int ColCount, const int NonZeroCount, const bool IsComplex);

#NameTypeDescription
1RowCountconst int
2ColCountconst int
3NonZeroCountconst int
4IsComplexconst bool
Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler