function RealToCplx(ReVec: TOpenCLValue; ImVec: TOpenCLValue): TOpenCLValue;
Constructs a complex object from two real objects.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ReVec | TOpenCLValue | source TOpenCLValue |
| 2 | ImVec | TOpenCLValue | source TOpenCLValue |
Returns: TOpenCLValue
Remarks:
Construct a complex object from the ReVec (real part) and the ImVec (imaginary part) objects. The result is stored in the calling object. FloatPrecision and TOpenCLBase.Complex properties of the calling object are set implicitly to match ReVec and ImVec objects. An exception is raised if ReVec or ImVec TOpenCLBase.Complex property is True.
Examples
var a,b,c: clValue;
begin
a.Copy(3);
b.Copy(4);
c.RealToCplx(a,b); //c =3+4i;
end;
See Also: TOpenCLValue.CplxToReal