Matrix.Disown Method

Overload List

#SignatureDescription
1void DisownDisowns a pointer to an array from calling matrix Values1D.
2void Disown(ref Double[] aArray, ref Int32 aIndex, ref Int32 aRows, ref Int32 aCols, ref Boolean aIsComplex)Disowns a pointer to an array from matrix Values1D.

Overload 1: void Disown

Disowns a pointer to an array from calling matrix Values1D.

Result: stored in self (calling object)

Remarks:

It dismisses the Values, Values1D, CValues1D array and sets the Dew.Math.Matrix.Rows and Dew.Math.Matrix.Cols to zero.

Overload 2: void Disown(ref Double[] aArray, ref Int32 aIndex, ref Int32 aRows, ref Int32 aCols, ref Boolean aIsComplex)

Disowns a pointer to an array from matrix Values1D.

#NameTypeDescription
1aArrayDouble[] (ref)
2aIndexInt32 (ref)output
3aRowsInt32 (ref)output
4aColsInt32 (ref)output
5aIsComplexBoolean (ref)

Result: stored in self (calling object)

Remarks:

The method does the opposite of the Dew.Math.Matrix.Adopt method. It will set the AArrays to Pointer(Values), ARows and ACols to matrix's Dew.Math.Matrix.Rows and Dew.Math.Matrix.Cols and IsComplex to matrix Dew.Math.TMtxVec.Complex 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 Dew.Math.Matrix.Adopt method.

See Also: Matrix.Adopt