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

◆ computation_complete()

ComputationStatusCode GBinhom_comp::computation_complete ( ) const
private

Definition at line 750 of file gb-sugarless.cpp.

752{
753 if (stop_.basis_element_limit > 0 && n_gb >= stop_.basis_element_limit)
754 return COMP_DONE_GB_LIMIT;
755 if (stop_.syzygy_limit > 0 && n_syz >= stop_.syzygy_limit)
756 return COMP_DONE_SYZ_LIMIT;
757 if (stop_.pair_limit > 0 && n_computed >= stop_.pair_limit)
759 if (stop_.subring_limit > 0 && n_subring >= stop_.subring_limit)
761 return COMP_COMPUTING;
762}
StopConditions stop_
Definition comp.hpp:75
@ COMP_DONE_PAIR_LIMIT
Definition computation.h:64
@ COMP_DONE_SUBRING_LIMIT
Definition computation.h:70
@ COMP_DONE_GB_LIMIT
Definition computation.h:65
@ COMP_DONE_SYZ_LIMIT
Definition computation.h:66
@ COMP_COMPUTING
Definition computation.h:71

References COMP_COMPUTING, COMP_DONE_GB_LIMIT, COMP_DONE_PAIR_LIMIT, COMP_DONE_SUBRING_LIMIT, COMP_DONE_SYZ_LIMIT, n_computed, n_gb, n_subring, n_syz, and Computation::stop_.

Referenced by start_computation().