clValue.Abs Method

function Abs(const X: TOpenCLValue): TOpenCLValue;

Absolute values of X.

#NameTypeDescription
1XTOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculate the absolute value of X.

Examples
var a,b: clValue;
begin
    b.Copy(-0.5);
    a.Abs(b);
end;
See Also: clValue.Mag