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: clValue;
begin
    b.Copy(Cplx(2,3));
    a.Mag(b);
end;
See Also: TOpenCLValue.Abs