TOpenCLValue::Sgn Method

Overload List

#SignatureDescription
1TOpenCLBase *Sgn(TOpenCLBase *Src, int SrcIndex, int Index, int Len);
2TOpenCLValue *Sgn(TOpenCLValue *Src);Computes signum function from Src and stores the result in the calling object.

Overload 1: TOpenCLBase *Sgn(TOpenCLBase *Src, int SrcIndex, int Index, int Len);

#NameTypeDescription
1SrcTOpenCLBase *
2SrcIndexint
3Indexint
4Lenint
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: TOpenCLValue *Sgn(TOpenCLValue *Src);

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

#NameTypeDescription
1SrcTOpenCLValue *
Remarks:

FloatPrecision and 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.

Declared in Dew::Math::TOpenCLValue · Dew.Math/clMtxVec.h · Cross-compiler