Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure Disown; | Disowns a pointer to an array from calling matrix Values1D. |
| 2 | procedure Disown(out aArray: TIntegerArray; out aIndex: Integer; out ARows: Integer; out ACols: Integer; out aIntPrecision: TIntPrecision); | Disowns a pointer to an array from matrix Values1D. |
Overload 1: procedure Disown;
Disowns a pointer to an array from calling matrix Values1D.
Result: stored in self (calling object)
It dismisses the Values, Values1D, CValues1D array and sets the TMtxInt.Rows and TMtxInt.Cols to zero.
Overload 2: procedure Disown(out aArray: TIntegerArray; out aIndex: Integer; out ARows: Integer; out ACols: Integer; out aIntPrecision: TIntPrecision);
Disowns a pointer to an array from matrix Values1D.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aArray | TIntegerArray | |
| 2 | aIndex | Integer | |
| 3 | ARows | Integer | |
| 4 | ACols | Integer | |
| 5 | aIntPrecision | TIntPrecision |
Result: stored in self (calling object)
The method does the opposite of the TMtxInt.Adopt method. It will set the AArrays to Pointer(Values), ARows and ACols to matrix's TMtxInt.Rows and TMtxInt.Cols and aIntPrecision to matrix 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 TMtxInt.Adopt method.