function Abs(const X: TOpenCLValue): TOpenCLValue;
Absolute values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue |
Returns: TOpenCLValue
Remarks:
Calculate the absolute value.
Examples
var a,b: TOpenCLValue;
begin
CreateIt(a,b);
try
b.Copy(-0.5);
a.Abs(b);
finally
FreeIt(a,b);
end;
end;
See Also: TOpenCLValue.Mag