You are here: Symbol Reference > MtxExprInt Namespace > Classes > MatrixInt Record > public > Adopt Method > MatrixInt.Adopt Method (PAPointer, integer, integer, TIntPrecision)
MtxVec VCL
ContentsIndex
PreviousUpNext
MatrixInt.Adopt Method (PAPointer, integer, integer, TIntPrecision)

Adopts a pointer to one dimensional array.

Pascal
procedure Adopt(const AArray: PAPointer; const ARows: integer; const ACols: integer; const aIntPrecision: TIntPrecision); overload;

Addopts a pointer to AArray array. The method sets the calling matrix IntPrecision property to IsComplex, Rows to ARows, Cols to ACols and Values1D and CValues1D to Pointer(AArray).

You must call the Disown method, before you destroy the matrix. Use this method to save a copy operation. You should be very careful never to resize the calling matrix while it contains the adopted memory or call any routines that would require the matrix to reallocate the memory.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!