Vector.Disown Method

Overload List

#SignatureDescription
1procedure Disown; overload;Disowns a calling vector values pointer by setting Values, CValues to nil and TMtxVecBase.Length to 0.
2procedure Disown(out AArray: PAPointer; out ALength: integer; out aFloatPrecision: TMtxFloatPrecision); overload;Disowns a values pointer.
3procedure Disown(out AArray: PAPointer; out ALength: integer; out aIsComplex, aIsDouble: boolean); overload;

Overload 1: procedure Disown; overload;

Disowns a calling vector values pointer by setting Values, CValues to nil and TMtxVecBase.Length to 0.

Result: stored in self (calling object)

Overload 2: procedure Disown(out AArray: PAPointer; out ALength: integer; out aFloatPrecision: TMtxFloatPrecision); overload;

Disowns a values pointer.

#NameTypeDescription
1AArrayPAPointer
2ALengthinteger
3aFloatPrecisionTMtxFloatPrecision

Result: stored in self (calling object)

Remarks:

Disowns a values pointer. The Disown method is the opposite of the Vector.Adopt method. It will set the AArrays to Pointer(Values), ALength to vector's TMtxVecBase.Length and IsComplex to TMtxVec.Complex property. Use the Disown method to "disconnect" AArray from the TVec.Values. Disown sets Values and CValues array pointers to nil and Length property to zero, but without freeing the allocated memory. The allocated memory can be disowned only, if it was adopted with a call to the Vector.Adopt method.

See Also: Vector.Adopt, Vector.Adopt, Vector.Adopt

Overload 3: procedure Disown(out AArray: PAPointer; out ALength: integer; out aIsComplex, aIsDouble: boolean); overload;

#NameTypeDescription
1AArrayPAPointer
2ALengthinteger
3aIsComplexBoolean
4aIsDoubleBoolean

Result: stored in self (calling object)