Summary
Copies values from vector to matrix column.
Class
TMtx
Declaration
Function SetCol(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+Len-1,Col]. 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 SetCol(Vec: TDenseMtxVec; Col: integer): TMtx;
Description
Copy all Vec elements to the calling matrix Col column. The
Complex property of the calling matrix is adjusted automatically. An exception is raised, if array bounds are overrun.
Example 1
var A: TMtx;
V: TVec;
begin
CreateIt(A);
CreateIt(V);
try
A.Size(2,1,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