function RealPart(const Vec: TOpenCLValue): TOpenCLValue;
Gets real part of complex object value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLValue |
Returns: TOpenCLValue
Remarks:
The method method gets the real part of a complex object Vec and stores the real result in the calling object. FloatPrecision and clValue.Complex properties of the calling object are set implicitly to match Vec object. Vec clValue.Complex property must be true otherwise an exception is raised.
Examples
var a,b: clValue;
begin
a.Copy(Cplx(2,3)); // = [2+3i]
b.RealPart(a); // b = [2]
end;
See Also: clValue.ImagPart