14#ifndef OR_TOOLS_UTIL_CACHED_LOG_H_
15#define OR_TOOLS_UTIL_CACHED_LOG_H_
38 void Init(
int cache_size);
44 std::vector<double> cache_;
double Log2(int64_t input) const
Returns the log2 of 'input'.
void Init(int cache_size)
This method can only be called once, and with a cache_size > 0.
CachedLog(const CachedLog &)=delete
This type is neither copyable nor movable.
CachedLog & operator=(const CachedLog &)=delete
In SWIG mode, we don't want anything besides these top-level includes.
static int input(yyscan_t yyscanner)