Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxInt *Size(int ARows, int ACols, TIntPrecision aPrecision); | Sets the size of matrix. |
| 2 | TMtxInt *Size(int ARows, int ACols); | Specifies size of an integer matrix. |
| 3 | TMtxVecInt *Size(TMtxVecBase *Src, TIntPrecision aPrecision); | |
| 4 | TMtxVecInt *Size(TMtxVecBase *Src); |
Overload 1: TMtxInt *Size(int ARows, int ACols, TIntPrecision aPrecision);
Sets the size of matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ARows | int | |
| 2 | ACols | int | |
| 3 | aPrecision | TIntPrecision |
Remarks:
Set the calling matrix properties:
- TMtxSmallInt::Rows = ARows,
- TMtxSmallInt::Cols = ACols
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
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ARows | int | |
| 2 | ACols | int |
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);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecBase * | |
| 2 | aPrecision | TIntPrecision |
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler
Overload 4: TMtxVecInt *Size(TMtxVecBase *Src);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecBase * |
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler