MatrixInt::Size Method

Overload List

#SignatureDescription
1TMtxInt *Size(const int ARows, const int ACols, const TIntPrecision aPrecision) const;Sets the size of matrix.
2TMtxInt *Size(const int ARows, const int ACols) const;Specifies size of an integer matrix.
3TMtxInt *Size(TMtxVecBase *Src, const TIntPrecision aPrecision) const;Size the object.
4TMtxInt *Size(TMtxVecBase *Src) const;Size the object.

Overload 1: TMtxInt *Size(const int ARows, const int ACols, const TIntPrecision aPrecision) const;

Sets the size of matrix.

#NameTypeDescription
1ARowsconst int
2AColsconst int
3aPrecisionconst TIntPrecision
Remarks:

Set the calling matrix properties:

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

Note
The Size method performs an out-of-memory safe resize, if the matrix already has memory allocated. This prevents out of memory message for example when redefining the size of the matrix from single column to single row:

A.Rows := 10000; // matrix size = 0
A.Cols := 1;     // matrix size = 10000
// ...
A.Cols := 10000; // matrix size = 100 000 000 (problems here)
A.Rows := 1;     // matrix size = 10 000
See Also: MatrixInt::Rows, MatrixInt::Cols, TMtxVecInt::IntPrecision
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: TMtxInt *Size(const int ARows, const int ACols) const;

Specifies size of an integer matrix.

#NameTypeDescription
1ARowsconst int
2AColsconst int
Remarks:

The Value of IntPrecision property is preserved.

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 3: TMtxInt *Size(TMtxVecBase *Src, const TIntPrecision aPrecision) const;

Size the object.

#NameTypeDescription
1SrcTMtxVecBase *
2aPrecisionconst TIntPrecision
Remarks:

Assigns the size of the Src object to the calling object and changes the IntPrecision to new value.

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 4: TMtxInt *Size(TMtxVecBase *Src) const;

Size the object.

#NameTypeDescription
1SrcTMtxVecBase *
Remarks:

Assigns the size of the Src object to the calling object. If both objects have a matching MatrixInt::Length, MatrixInt::Rows, MatrixInt::Cols properties, only the MatrixInt::IntPrecision property of the calling object will changed, while all other properties describing the size of the object will be preserved.

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler