Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <cached_log.h>
Public Member Functions | |
CachedLog () | |
CachedLog (const CachedLog &)=delete | |
This type is neither copyable nor movable. | |
CachedLog & | operator= (const CachedLog &)=delete |
~CachedLog () | |
void | Init (int cache_size) |
This method can only be called once, and with a cache_size > 0. | |
double | Log2 (int64_t input) const |
Returns the log2 of 'input'. | |
This class is used when manipulating search space estimations. It provides fast access to log of a domain size. Future Extensions:
Definition at line 27 of file cached_log.h.
operations_research::CachedLog::CachedLog | ( | ) |
Definition at line 20 of file cached_log.cc.
|
delete |
This type is neither copyable nor movable.
operations_research::CachedLog::~CachedLog | ( | ) |
Definition at line 22 of file cached_log.cc.
void operations_research::CachedLog::Init | ( | int | cache_size | ) |
This method can only be called once, and with a cache_size > 0.
Definition at line 34 of file cached_log.cc.
double operations_research::CachedLog::Log2 | ( | int64_t | input | ) | const |
Returns the log2 of 'input'.
Definition at line 43 of file cached_log.cc.