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

Copies values from vector to matrix row.

Pascal
function SetRow(const Vec: TDenseMtxVec; Row: integer): TMtx; overload;

Copy all Vec elements to the calling matrix Row row. The Complex property of the calling matrix is adjusted automatically. An exception is raised, if array bounds are overrun.

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