TOpenCLValue.Exp2 Method

TOpenCLValue Exp2(TOpenCLValue X)

Exponent base 2 (2^).

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculate the exponent base 2 of X ( 2^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(8);
            a.Exp2(b);
        }
        finally
        {
            clMtxVec.FreeIt(ref a, ref b);
        }
    }
}
See Also: TOpenCLValue.Log2