You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > SetIt Method > Matrix.SetIt Method (integer, integer, Boolean, array of double)
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.SetIt Method (integer, integer, Boolean, array of double)

Sets matrix values.

Pascal
function SetIt(ARows: integer; ACols: integer; AComplex: Boolean; const A: array of double): TMtx; 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 Complex property is set to AComplex. An exception is raised if the matrix size (ARows*ACols) does not match the number of complex numbers in A.

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