void Adopt(const DewArray<int> &aArray, int aIndex, int ARows, int ACols);
Adopts a pointer to one dimensional array.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aArray | const DewArray<int> & | |
| 2 | aIndex | int | |
| 3 | ARows | int | |
| 4 | ACols | int |
Remarks:
Adopts a pointer to AArray array. The method sets the calling matrix TMtxByte::IntPrecision property to prInt32, TMtxByte::Rows to ARows, TMtxByte::Cols to ACols and Values1D and CValues1D to Pointer(AArray).
Note
You must call the TMtxByte::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: TMtxByte::Disown
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler