You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Size Method > Matrix.Size Method (integer, integer, TMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.Size Method (integer, integer, TMtxVec)

Specifies size of the matrix.

Pascal
function Size(const ARows: integer; const ACols: integer; const aFloatPrecisionRef: TMtxVec): TMtx; overload;

Set the following matrix properties: 

Rows = ARows, Cols = ACols and See cref="FloatPrecision"/> = aFloatPrecisionRef.FloatPrecision

Calling the Size method does not preserve the contents of the matrix. Use the Resize method, if you want to preserve existing values.

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