You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clValue Structure > clValue Methods > clValue.CplxToReal Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clValue.CplxToReal Method

Split complex value in real and imaginary part.

Syntax
C#
Visual Basic
public void CplxToReal(TOpenCLValue ReVec, TOpenCLValue ImVec);

Split calling objects value into real and imaginary components. Store the real component in ReVec and imaginary component in ImVec. FloatPrecision and Complex properties of ReVec and ImVec are set implicitly to match with the calling value object. An execption is raised, if the calling object is not complex.

var a,b,c: clValue; begin a.Copy(Cplx(3,4)); // a= [1-2i, 3+4i] a.CplxToReal(b,c); // b = 3, c = 4 end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!