TOpenCLValue Mag(TOpenCLValue X)
Magnitude.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue | source TOpenCLValue |
Returns: TOpenCLValue
Remarks:
Calculate the magnitude of X. This method has the same function as the Dew.Math.TOpenCLValue.Abs method.
Examples
using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples
{
void Example()
{
TOpenCLValue a,b;
clMtxVec.CreateIt(out a, out b);
try
{
b.Copy(Cplx(2,3));
a.Mag(b);
}
finally
{
clMtxVec.FreeIt(ref a, ref b);
}
}
}
See Also: TOpenCLValue.Abs