Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure Adopt(const Src: TMtxInt); | Adopts TMtxInt object. |
| 2 | procedure Adopt(const aArray: TIntegerArray; const aIndex: Integer; const ARows: Integer; const ACols: Integer); | Adopts a pointer to one dimensional array. |
Overload 1: procedure Adopt(const Src: TMtxInt);
Adopts TMtxInt object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxInt |
Result: stored in self (calling object)
Src object will be adopted by MatrixInt. When the MatrixInt gets out of scope, the object will be freed.
Overload 2: procedure Adopt(const aArray: TIntegerArray; const aIndex: Integer; const ARows: Integer; const ACols: Integer);
Adopts a pointer to one dimensional array.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aArray | TIntegerArray | |
| 2 | aIndex | Integer | |
| 3 | ARows | Integer | |
| 4 | ACols | Integer |
Result: stored in self (calling object)
Addopts a pointer to AArray array. The method sets the calling matrix TMtxVecInt.IntPrecision property to IsComplex, MatrixInt.Rows to ARows, MatrixInt.Cols to ACols and Values1D and CValues1D to Pointer(AArray).
Note
You must call the MatrixInt.Disown method, before you destroy the matrix. Use this method to save a copy operation. You should be very careful never to resize the calling matrix while it contains the adopted memory or call any routines that would require the matrix to reallocate the memory.