Dew MtxVec NET
TVec.GetRow Methods
Summary
Copies a row from matrix.

Class
TVec

Declaration
Function GetRow(Mtx: TMtx; Row: integer): TVec;

Description
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.
 See Also 
GetCol 
SetRow 

Example 1

var a: TVec; b: TMtx; begin CreateIt(a); CreateIt(b); try b.SetIt(2,2,False,[1,2, 3,4]); a.GetRow(b,0); // a now contains [1,2] finally FreeIt(a); FreeIt(b); end; end;


Declaration
Function GetRow(Mtx: TMtx; Row, Col, Index, Len: integer): TVec;

Description
Copy the Row-th column elements [Col]..[Col+Len-1] to calling vector elements [Index]..[Index+Len-1]. The
Complex property of calling vector must be set explicitly. An exception is raised if condition checking is enabled and column array borders are overrun.
Declaration
Function GetRow(Mtx: TMtx; Row, Col, Len: integer): TVec;

Description
Copy the Row-th column elements [Col]..[Col+Len-1] to calling vector. The Length and Complex properties of calling vector are adjusted automatically. An exception is raised if condition checking is enabled and column array borders are overrun.

Copyright 2008 Dew Research
http://www.dewresearch.com