clValue::Sgn Method

TOpenCLValue *Sgn(TOpenCLValue *Src) const;

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

#NameTypeDescription
1SrcTOpenCLValue *
Remarks:

Size and clValue::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.

Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler