TOpenCLValue.Abs Method

function Abs(const X: TOpenCLValue): TOpenCLValue;

Absolute values.

#NameTypeDescription
1XTOpenCLValue

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