You are here: Symbol Reference > MtxVecInt Namespace > Classes > TMtxInt Class > public > SetIt Method > TMtxInt.SetIt Method (integer, integer, TIntPrecision, array of Integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxInt.SetIt Method (integer, integer, TIntPrecision, array of Integer)

Sets matrix values.

Pascal
function SetIt(ARows: integer; ACols: integer; aPrecision: TIntPrecision; const A: array of Integer): TMtxInt; overload;

Sets matrix values. This method gives you the possibility to pass large arrays of elements without having to declare constant arrays. 

Pass all elements in A array to the calling matrix. The Rows and Cols properties of the calling matrix are set to ARows and ACols and the IntPrecision property is set to aPrecision. An exception is raised if the matrix size (ARows*ACols) does not match the number of integer numbers in A.

var A: TMtxInt; begin CreateIt(A); try A.SetIt(2,2,[1,2, 2,4]); finally FreeIt(A); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!