Dew MtxVec NET
TMtx.SetRow Methods
Summary
Copies values from vector to matrix row.

Class
TMtx

Declaration
Function SetRow(Vec: TDenseMtxVec; VecIndex, Row, Col, Len: integer): TMtx;

Description
Copy vector Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements [Row,Col]..[Row,Col+Len-1]. An exception is raised if condition checking is enabled and array bounds are overrun. An exception is raised, if Vec and the calling matrix complex properties do not match.
Declaration
Function SetRow(Vec: TDenseMtxVec; Row: integer): TMtx;

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

Example 1

var A: TMtx; V: TVec; begin CreateIt(A); CreateIt(V); try A.Size(1,2,True); V.SetIt(True,[1,2, 2,4]); // complex vector A.SetCol(V,0); finally FreeIt(V); FreeIt(A); end; end;

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