MatrixInt::Disown Method

Overload List

#SignatureDescription
1void Disown(DewArray<int> &aArray, int &aIndex, int &ARows, int &ACols, TIntPrecision &aIntPrecision) const;Disowns a pointer to an array from matrix Values1D.
2void Disown() const;Disowns a pointer to an array from calling matrix Values1D.

Overload 1: void Disown(DewArray<int> &aArray, int &aIndex, int &ARows, int &ACols, TIntPrecision &aIntPrecision) const;

Disowns a pointer to an array from matrix Values1D.

#NameTypeDescription
1aArrayDewArray<int> &
2aIndexint &
3ARowsint &
4AColsint &
5aIntPrecisionTIntPrecision &
Remarks:

The method does the opposite of the MatrixInt::Adopt method. It will set the AArrays to Pointer(Values), ARows and ACols to matrix's MatrixInt::Rows and MatrixInt::Cols and IsComplex to matrix TMtxVecInt::IntPrecision property. Use the Disown method to "disconnect" AArray from the TMtx.Values1D. Disown sets Values1D and CValues1D array pointers to nil and Rows, Cols properties to ACols, but without freeing the allocated memory. The allocated memory can be disowned only, if it was adopted with a call to the MatrixInt::Adopt method.

See Also: MatrixInt::Adopt
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: void Disown() const;

Disowns a pointer to an array from calling matrix Values1D.

Remarks:

It dismisses the Values, Values1D, CValues1D array and sets the MatrixInt::Rows and MatrixInt::Cols to zero.

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler