TOpenCLValue.SgnMul Method

function SgnMul(const Src: TOpenCLValue): TOpenCLValue;

Signum.

#NameTypeDescription
1SrcTOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculates the signum of Src and multiplies it with the calling object value. Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0. FloatPrecision and TOpenCLBase.Complex property of calling object are adjusted automatically.