clValue.Mag Method

TOpenCLValue Mag(TOpenCLValue X)

Magnitude.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculate the magnitude for X. This method has the same function as the Dew.Math.clValue.Abs method.

Examples
clValue a;
clValue b;
b.Copy(Cplx(2,3));
a.Mag(b);
See Also: clValue.Abs