TOpenCLValue::Mag Method

TOpenCLValue *Mag(TOpenCLValue *X);

Magnitude.

#NameTypeDescription
1XTOpenCLValue *
Remarks:

Calculate the magnitude of X. This method has the same function as the TOpenCLValue::Abs method.

Examples
#include "Math387.h"
#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: TOpenCLValue::Abs
Declared in Dew::Math::TOpenCLValue · Dew.Math/clMtxVec.h · Cross-compiler