TOpenCLValue ImagPart(TOpenCLValue Vec)
Gets the imaginary part of a complex object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLValue | source TOpenCLValue |
Returns: TOpenCLValue
Remarks:
Gets the imaginary part of a complex object Vec and stores the real result in the calling object. FloatPrecision and Dew.Math.clValue.Complex properties of the calling object are set implicitly to match Vec object. Vec Dew.Math.clValue.Complex must be true otherwise an exception will be raised.
Examples
clValue a;
clValue b;
b.Copy(Cplx(8));
a.ImagPart(b); // a = 0
See Also: clValue.RealPart, clValue.RealToCplx