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

Constructs a complex object from two real objects.

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

Construct a complex object from the ReVec (real part) and the ImVec (imaginary part) objects. The results are stored in the calling object. Size and Complex properties of the calling object are set implicitly to match ReVec and ImVec objects. An exception is raised if ReVec or ImVec Complex property is True.

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