TOpenCLValue *InvSqrt(TOpenCLValue *X) const;
The inverse of square root 1/(v)^1/2.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue * |
Remarks:
Calculate the inverse square root 1/(element)^(1/2)) of X.
Examples
#include "clMtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
clValue a, b;
b.Copy(2.3);
a.InvSqrt(b); // a = 2.3^(-1/2)
}
See Also: clValue::Sqrt
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler