TOpenCLValue Abs(TOpenCLValue X)
Absolute values of X.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue | source 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