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

◆ insertNewOverlaps()

auto NCGroebner::insertNewOverlaps ( std::vector< Overlap > & newOverlaps) ->void

Definition at line 438 of file NCGroebner.cpp.

439{
440 for (auto newOverlap : newOverlaps)
441 {
442 // check to see if the overlap is necessary before insertion
443 // FM: not sure if we should do this here, or in the loop.
444 // std::cout << "Checking overlap: " << newOverlap << std::endl;
445 // printOverlapData(std::cout, newOverlap);
446 if (isOverlapNecessary(newOverlap))
447 {
448 mOverlapTable.insert(overlapHeft(newOverlap),
449 false,
450 newOverlap);
451 }
452 else
453 {
454 if (M2_gbTrace >= 3)
455 {
456 std::cout << "Reduction avoided using 2nd criterion." << std::endl;
457 }
458 }
459 // std::cout << "Overlap check complete." << std::endl;
460 }
461}
auto isOverlapNecessary(Overlap o) const -> bool
auto overlapHeft(Overlap o) const -> int
OverlapTable mOverlapTable
int M2_gbTrace
Definition m2-types.cpp:52

References isOverlapNecessary(), M2_gbTrace, mOverlapTable, and overlapHeft().

Referenced by updateOverlaps().