You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Copy Method > Matrix.Copy Method (TMtxVec, TMtxFloatPrecision)
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.Copy Method (TMtxVec, TMtxFloatPrecision)

Copy object values.

Pascal
function Copy(const Src: TMtxVec; const dstFloatPrecision: TMtxFloatPrecision): TMtxVec; overload;

Copy each of Src elements to the calling object. Size and Complex properties of the calling object are set implicitly to match Src object.

Assign

var a,b,c: TVec; begin CreateIt(a,b,c); try a.SetIt(True,[1,2,3,4]); // a = [1,2,3,4] b.Copy(a, mvSingle); // convert to single precision finally FreeIt(a,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!