You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > GetRow Method > Vector.GetRow Method (TMtx, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.GetRow Method (TMtx, integer)

Copies a row from matrix.

Pascal
function GetRow(const Mtx: TMtx; aRow: integer): TVec; overload;

Copies the Row-th row from Mtx matrix to calling vector. The Length and Complex properties of calling vector are adjusted automatically. An exception is raised if condition checking is enabled and Row is greater than Mtx.Rows-1.

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