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