TOpenCLValue Mag(TOpenCLValue X)
Magnitude.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue | source 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