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

◆ getHeapType()

HeapType getHeapType ( int strategy)

Definition at line 1123 of file NCReduction.cpp.

1124{
1125 // The first 3 bits of strategy encode which heap type to use.
1126 switch (strategy & 7) {
1127 case 0: return HeapType::Map; // good one
1128 case 1: return HeapType::PriorityQueue; // good one
1129 case 2: return HeapType::Trivial;
1130 case 3: return HeapType::NaiveDedupGeobucket;
1131 case 4: return HeapType::NaiveGeobucket;
1132 case 5: return HeapType::NaiveTourTree;
1133 case 6: return HeapType::NaiveHeap;
1134 default: return HeapType::Map;
1135 }
1136}
@ NaiveDedupGeobucket

References Map, NaiveDedupGeobucket, NaiveGeobucket, NaiveHeap, NaiveTourTree, PriorityQueue, and Trivial.

Referenced by NCGroebner::NCGroebner().