TOpenCLValue.Mag Method

function Mag(const X: TOpenCLValue): TOpenCLValue;

Magnitude.

#NameTypeDescription
1XTOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculate the magnitude of X. This method has the same function as the TOpenCLValue.Abs method.

Examples
var a,b: TOpenCLValue;
begin
    CreateIt(a,b);
    try
        b.Copy(Cplx(2,3));
        a.Mag(b);
    finally
        FreeIt(a,b);
    end;
end;
See Also: TOpenCLValue.Abs