TMtxSmallInt.Disown Method

Overload List

#SignatureDescription
1void DisownDisowns a pointer to an array from calling matrix Values1D.
2void Disown(ref Int32[] aArray, ref Int32 aIndex, ref Int32 ARows, ref Int32 ACols, ref TIntPrecision aIntPrecision)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.TMtxInt.Rows and Dew.Math.TMtxInt.Cols to zero.

Overload 2: void Disown(ref Int32[] aArray, ref Int32 aIndex, ref Int32 ARows, ref Int32 ACols, ref TIntPrecision aIntPrecision)

Disowns a pointer to an array from matrix Values1D.

#NameTypeDescription
1aArrayInt32[] (ref)
2aIndexInt32 (ref)output
3ARowsInt32 (ref)output
4AColsInt32 (ref)output
5aIntPrecisionTIntPrecision (ref)

Result: stored in self (calling object)

Remarks:

The method does the opposite of the Dew.Math.TMtxInt.Adopt method. It will set the AArrays to Pointer(Values), ARows and ACols to matrix's Dew.Math.TMtxInt.Rows and Dew.Math.TMtxInt.Cols and aIntPrecision to matrix Dew.Math.TMtxVecInt.IntPrecision property. Use the Disown method to "disconnect" AArray from the TMtxInt.IValues1D. Disown sets IValues1D, SValues1D and BValues1D 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.TMtxInt.Adopt method.