Dew MtxVec NET
TVec.GetCol Methods
Summary
Copies a column from matrix.

Class
TVec

Declaration
Function GetCol(Mtx: TMtx; Col: integer): TVec;

Description
Copies the Col-th column 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 Col is greater than Mtx.Cols-1.
 See Also 
GetRow 
SetCol 

Example 1

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


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

Description
Copy the Col-th column elements [Row]..[Row+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 GetCol(Mtx: TMtx; Row, Col, Len: integer): TVec;

Description
Copy the Col-th column elements [Row]..[Row+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