You are here: Symbol Reference > clMtxExpr Namespace > Classes > clMatrix Record > public > CplxToReal Method > clMatrix.CplxToReal Method (TOpenCLMtxVec, TOpenCLMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
clMatrix.CplxToReal Method (TOpenCLMtxVec, TOpenCLMtxVec)

Split complex calling object in real and imaginary part.

Pascal
procedure CplxToReal(ReVec: TOpenCLMtxVec; ImVec: TOpenCLMtxVec); 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: clMatrix; begin a.CopyFromArray(2,2,TSingleArray.Create(1,-2,3,4)); a.CplxToReal(b,c); end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!