TOpenCLValue.LogN Method

TOpenCLValue LogN(Double N, TOpenCLValue X)

Log base N.

#NameTypeDescription
1NDoublescalar
2XTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue - returns Log with base N for value 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.LogN(4, b);  // a = LogN(4, 2.3)
        }
        finally
        {
            clMtxVec.FreeIt(ref a, ref b);
        }
    }
}
See Also: TOpenCLValue.Power