TOpenCLValue *Mag(TOpenCLValue *X) const;
Magnitude.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue * |
Remarks:
Calculate the magnitude for X. This method has the same function as the clValue::Abs method.
Examples
#include "Units.Math387.h"
#include "clMtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::Math387;
void Example()
{
clValue a, b;
b.Copy(Cplx(2, 3));
a.Mag(b);
}
See Also: clValue::Abs
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler