Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec *Size(TMtxVecBase *Src); | Size the object. |
| 2 | TMtxVec *Size(TMtxVecBase *Src, bool AComplex); | The size of sparse matrix. |
| 3 | TMtxVec *Size(TMtxVecBase *Src, const TMtxFloatPrecision aFloatPrecision); | Sets sparse matrix size to match Src with new aFloatPrecision. |
| 4 | void Size(const int RowCount, const int ColCount, const int NonZeroCount, const TMtxFloatPrecision aFloatPrecision); | Define sparse matrix size in single pass. |
| 5 | void Size(const int RowCount, const int ColCount, const int NonZeroCount, const bool AComplex, const bool aIsDouble); | |
| 6 | void Size(const int RowCount, const int ColCount, const int NonZeroCount, const bool IsComplex); |
Overload 1: TMtxVec *Size(TMtxVecBase *Src);
Size the object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecBase * |
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.
Overload 2: TMtxVec *Size(TMtxVecBase *Src, bool AComplex);
The size of sparse matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecBase * | |
| 2 | AComplex | bool |
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.
Overload 3: TMtxVec *Size(TMtxVecBase *Src, const TMtxFloatPrecision aFloatPrecision);
Sets sparse matrix size to match Src with new aFloatPrecision.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecBase * | |
| 2 | aFloatPrecision | const TMtxFloatPrecision |
Overload 4: void Size(const int RowCount, const int ColCount, const int NonZeroCount, const TMtxFloatPrecision aFloatPrecision);
Define sparse matrix size in single pass.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | RowCount | const int | |
| 2 | ColCount | const int | |
| 3 | NonZeroCount | const int | |
| 4 | aFloatPrecision | const TMtxFloatPrecision |
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.
Overload 5: void Size(const int RowCount, const int ColCount, const int NonZeroCount, const bool AComplex, const bool aIsDouble);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | RowCount | const int | |
| 2 | ColCount | const int | |
| 3 | NonZeroCount | const int | |
| 4 | AComplex | const bool | |
| 5 | aIsDouble | const bool |
Overload 6: void Size(const int RowCount, const int ColCount, const int NonZeroCount, const bool IsComplex);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | RowCount | const int | |
| 2 | ColCount | const int | |
| 3 | NonZeroCount | const int | |
| 4 | IsComplex | const bool |