clValue.Abs Method

TOpenCLValue Abs(TOpenCLValue X)

Absolute values of X.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculate the absolute value of X.

Examples
clValue a;
clValue b;
b.Copy(-0.5);
a.Math.Abs(b);
See Also: clValue.Mag