TOpenCLValue.ImagPart Method

function ImagPart(const Vec: TOpenCLValue): TOpenCLValue;

Gets the imaginary part of a complex value.

#NameTypeDescription
1VecTOpenCLValue

Returns: TOpenCLValue

Remarks:

Gets the imaginary part of a complex value Vec and stores the real result in the calling object. FloatPrecision and TOpenCLBase.Complex properties of the calling object are set implicitly to match Vec object. Vec TOpenCLBase.Complex must be true otherwise the exception will be raised.

Examples
var a,b: clValue;
begin
    b.Copy(Cplx(8));
    a.ImagPart(b);  // a = 0
end;
See Also: TOpenCLValue.RealPart, TOpenCLValue.RealToCplx