| Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
#include <cached_log.h>
Public Member Functions | |
| CachedLog () | |
| ~CachedLog () | |
| void | Init (int cache_size) |
| This method can only be called once, and with a cache_size > 0. | |
| double | Log2 (int64 input) const |
| Returns the log2 of 'input'. | |
It provides fast access to log of a domain size. Future Extensions:
Definition at line 32 of file cached_log.h.
| operations_research::CachedLog::CachedLog | ( | ) |
Definition at line 20 of file cached_log.cc.
| 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 | input | ) | const |