You are here: Symbol Reference > MtxVec Namespace > Classes > TVec Class > public > CopyMtx Method > TVec.CopyMtx Method (TMtx)
MtxVec VCL
ContentsIndex
PreviousUpNext
TVec.CopyMtx Method (TMtx)

Copy values from matrix.

Pascal
procedure CopyMtx(const Mtx: TMtx); overload; deprecated;

Copy each of Mtx TMtx elements to the calling vector. The TMtxVecBase.Length and TMtxVec.ComplexComplexproperties of the calling vector are set implicitly to match Mtx matrix. The same can be achieved by calling the Copy method.

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;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!