clValue::Abs Method

TOpenCLValue *Abs(TOpenCLValue *X) const;

Absolute values of X.

#NameTypeDescription
1XTOpenCLValue *
Remarks:

Calculate the absolute value of X.

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: clValue::Mag
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler