Macaulay2 Engine
Loading...
Searching...
No Matches

◆ initialize()

template<typename ValueType>
void MonomialHashTable< ValueType >::initialize ( int logsize0)
private

Definition at line 24 of file monhashtable.cpp.

25{
27 size = (1 << logsize);
28 // threshold = size/3; // was 2*size/3
29 // threshold = 2*size/3; // was 2*size/3
30 threshold = size / 16; // was 2*size/3
32 hashmask = size - 1;
33 reset();
34}
unsigned int logsize
std::unique_ptr< value[]> hashtab
unsigned long size
unsigned long threshold
ValueType::value value
unsigned long hashmask

References hashmask, hashtab, logsize, reset(), size, and threshold.

Referenced by grow(), and MonomialHashTable().