logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

log,_log2,_log10,_log1p,_logb - Logarithm functions.

Authors

TheKhronosGroup

Description

log computes natural logarithm.

       log2 computes a base 2 logarithm.

       log10 computes a base 10 logarithm.

       log1p computes loge(1.0 + x).

       logb computes the exponent of x, which is the integral part of logr |x|.

       half_log computes natural logarithm.

       half_log2 computes a base 2 logarithm.

       half_log10 computes a base 10 logarithm.

       native_log computes natural logarithm over an implementation-defined range. The maximum error is
       implementation-defined.

       native_log2 computes a base 2 logarithm over an implementation-defined range. The maximum error is
       implementation-defined.

       native_log10 computes a base 10 logarithm over an implementation-defined range. The maximum error is
       implementation-defined.

Name

       log,_log2,_log10,_log1p,_logb - Logarithm functions.

       gentypelog(gentype);gentypelog2(gentype);gentypelog10(gentype);gentypelog1p(gentypex);gentypelogb(gentypex);gentypehalf_log(gentypex);gentypehalf_log2(gentypex);gentypehalf_log10(gentypex);gentypenative_log(gentypex);gentypenative_log2(gentypex);gentypenative_log10(gentypex);

Notes

        1. OpenCL Specification
           page 244, section 6.12.2 - Math Functions

The Khronos Group                                  11/18/2024                         LOG,LOG2,LOG10,LO(3clc)

See Also

mathFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also