clValue.ImagPart Method

function ImagPart(const Vec: TOpenCLValue): TOpenCLValue;

Gets the imaginary part of a complex object.

#NameTypeDescription
1VecTOpenCLValue

Returns: TOpenCLValue

Remarks:

Gets the imaginary 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 must be true otherwise an exception will be raised.

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