TMtxSmallInt::Size Method

Overload List

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

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

Sets the size of matrix.

#NameTypeDescription
1ARowsint
2AColsint
3aPrecisionTIntPrecision
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: TMtxSmallInt::Rows, TMtxSmallInt::Cols, TMtxSmallInt::IntPrecision
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler

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

Specifies size of an integer matrix.

#NameTypeDescription
1ARowsint
2AColsint
Remarks:

The Value of IntPrecision property is preserved.

Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler

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

#NameTypeDescription
1SrcTMtxVecBase *
2aPrecisionTIntPrecision
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler

Overload 4: TMtxVecInt *Size(TMtxVecBase *Src);

#NameTypeDescription
1SrcTMtxVecBase *
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler