Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void Adopt(TMtxInt *Src) const; | Adopts TMtxInt object. |
| 2 | void Adopt(const DewArray<int> &aArray, const int aIndex, const int ARows, const int ACols) const; | Adopts a pointer to one dimensional array. |
Overload 1: void Adopt(TMtxInt *Src) const;
Adopts TMtxInt object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxInt * |
Remarks:
Src object will be adopted by MatrixInt. When the MatrixInt gets out of scope, the object will be freed.
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler
Overload 2: void Adopt(const DewArray<int> &aArray, const int aIndex, const int ARows, const int ACols) const;
Adopts a pointer to one dimensional array.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aArray | const DewArray<int> & | |
| 2 | aIndex | const int | |
| 3 | ARows | const int | |
| 4 | ACols | const int |
Remarks:
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.
See Also: MatrixInt::Disown
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler