Copy values from matrix.
Copy each of Mtx matrix elements to the calling vector. The
properties of the calling vector are set implicitly to match Mtx matrix. The same can be achieved by calling the Copy method.
Example 1
var b,c: TVec;
A: TMtx;
begin
CreateIt(b,c);
CreateIt(A);
try
a.SetIt(2,2,False,[1,2,3,4]);
b.CopyMtx(a); // b = [1,2,3,4]
finally
FreeIt(A);
FreeIt(b,c);
end;
end;
Declaration
Function CopyMtx(Mtx: TMtx; Index, Row, Col, Len: Integer): TVec;
Description
Copy Mtx elements Values1D[Row*fCols+Col]..Values1D[Row*fCols+Col+Len] in the calling vector elements [Index]..[Index+Len-1]. The properties must be set explicitly. An exception is raised if
is True and array borders are overrun or underrun. The same can be achieved by calling the Copy method.