clValue::Inv Method

TOpenCLValue *Inv(TOpenCLValue *X) const;

Inverse (1/x).

#NameTypeDescription
1XTOpenCLValue *
Remarks:

Calculates the inverse of X.

Examples
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    clValue a, b;

    b.Copy(8);
    a.Inv(b);  // a = 1/8
}
See Also: clValue::Divide
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler