You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TMtxVec Class > public > CplxToReal Method > TMtxVec.CplxToReal Method (TMtxVec, TMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVec.CplxToReal Method (TMtxVec, TMtxVec)

Split complex calling object in real and imaginary part.

Pascal
procedure CplxToReal(const ReVec: TMtxVec; const ImVec: TMtxVec); overload;

Split calling object into real and imaginary components. Store all real components in ReVec and all imaginary components in ImVec. Size and Complex properties of ReVec and ImVec are set implicitly to match with the calling vector. An execption is raised if calling object is not complex.

var a,b,c: TVec; begin CreateIt(a,b,c); try a.SetIt(True,[1,-2,3,4]); a.CplxToReal(b,c); finally FreeIt(a,b,c); end; end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!