MatrixInt::Adopt Method

Overload List

#SignatureDescription
1void Adopt(TMtxInt *Src) const;Adopts TMtxInt object.
2void 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.

#NameTypeDescription
1SrcTMtxInt *
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.

#NameTypeDescription
1aArrayconst DewArray<int> &
2aIndexconst int
3ARowsconst int
4AColsconst 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