TOpenCLValue.InvCbrt Method

TOpenCLValue InvCbrt(TOpenCLValue X)

The inverse of cube root 1/(v)^1/3.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculate the inverse cube root (1/(element)^(1/3)) of X.

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(2.3);
            a.InvCbrt(b);  // a = 2.3^(1/3)
        }
        finally
        {
            clMtxVec.FreeIt(ref a, ref b);
        }
    }
}
See Also: TOpenCLValue.Cbrt