MCPcopy Create free account
hub / github.com/catboost/catboost / FastLogf

Function FastLogf

library/cpp/fast_log/fast_log.h:84–86  ·  view source on GitHub ↗

* @returns Base e logarithm of the value. * This is fast, inline and quite accurate algorithm. * Accuracy: ~1.e-5 * Speed: ~3x over logf() */

Source from the content-addressed store, hash-verified

82 * Speed: ~3x over logf()
83 */
84static inline float FastLogf(float value) noexcept {
85 return 0.69314718f * FastLog2f(value);
86}
87
88/**
89 * @returns Base 2 logarithm of the value.

Callers 4

ApplyLearningRateFunction · 0.85
InverseMonotoneTransformFunction · 0.85
GenerateBayessianWeightFunction · 0.85
EvalSingleThreadMethod · 0.85

Calls 1

FastLog2fFunction · 0.85

Tested by

no test coverage detected