TOpenCLValue::Abs Method

Overload List

#SignatureDescription
1TOpenCLBase *Abs(TOpenCLBase *X, int XIndex, int Index, int Len);
2TOpenCLValue *Abs(TOpenCLValue *X);Absolute values.

Overload 1: TOpenCLBase *Abs(TOpenCLBase *X, int XIndex, int Index, int Len);

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

Overload 2: TOpenCLValue *Abs(TOpenCLValue *X);

Absolute values.

#NameTypeDescription
1XTOpenCLValue *
Remarks:

Calculate the absolute value.

Examples
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    clValue a, b;

    b.Copy(-0.5);
    a.Abs(b);
}
See Also: TOpenCLValue::Mag
Declared in Dew::Math::TOpenCLValue · Dew.Math/clMtxVec.h · Cross-compiler