log,_log2,_log10,_log1p,_logb - Logarithm functions.
Contents
Copyright
Copyright © 2007-2011 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or
associated documentation files (the "Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included in all copies or
substantial portions of the Materials.
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]
