void CplxToReal(TOpenCLValue ReVec, TOpenCLValue ImVec)
Split complex calling object in real and imaginary part.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ReVec | TOpenCLValue | source TOpenCLValue |
| 2 | ImVec | TOpenCLValue | source TOpenCLValue |
Result: stored in self (calling object)
Remarks:
Split calling object into real and imaginary components. Stores real component in ReVec and imaginary component in ImVec. FloatPrecision and Dew.Math.TOpenCLBase.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.
Examples
clValue a;
clValue b;
clValue c;
a.Copy(Cplx(3,4)); // a= [1-2i, 3+4i]
a.CplxToReal(b,c); // b = 3, c = 4
See Also: TOpenCLValue.RealToCplx