TOpenCLValue.Sgn Method

TOpenCLValue Sgn(TOpenCLValue Src)

Computes signum function from Src and stores the result in the calling object.

#NameTypeDescription
1SrcTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

FloatPrecision and Dew.Math.TOpenCLBase.Complex properties of calling object are adjusted automatically. Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.