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

◆ computation_is_complete()

ComputationStatusCode GB_comp::computation_is_complete ( ) const
private

Definition at line 739 of file gb-homog2.cpp.

740{
741 // This handles everything but _Stop.always, _Stop.degree_limit
742 if (_state == GB_COMP_DONE) return COMP_DONE;
743 if (stop_.basis_element_limit > 0 && _n_gb > stop_.basis_element_limit)
744 return COMP_DONE_GB_LIMIT;
745 if (stop_.syzygy_limit > 0 && _n_syz > stop_.syzygy_limit)
746 return COMP_DONE_SYZ_LIMIT;
747 if (stop_.pair_limit > 0 && _n_pairs_computed > stop_.pair_limit)
749 if (stop_.just_min_gens && _n_gens_left == 0) return COMP_DONE_MIN_GENS;
750 if (stop_.subring_limit > 0 && _n_subring > stop_.subring_limit)
752 if (stop_.use_codim_limit)
753 {
754 // Compute the codimension
755 int c = 0;
756 // int c = codim_of_lead_terms();
757 if (c >= stop_.codim_limit) return COMP_DONE_CODIM;
758 }
759 return COMP_COMPUTING;
760}
StopConditions stop_
Definition comp.hpp:75
int _n_pairs_computed
Definition gb-homog2.hpp:94
int _n_gb
Definition gb-homog2.hpp:92
int _n_syz
Definition gb-homog2.hpp:96
int _state
Definition gb-homog2.hpp:78
int _n_subring
Definition gb-homog2.hpp:95
int _n_gens_left
Definition gb-homog2.hpp:93
@ COMP_DONE_MIN_GENS
Definition computation.h:68
@ COMP_DONE_PAIR_LIMIT
Definition computation.h:64
@ COMP_DONE
Definition computation.h:60
@ COMP_DONE_SUBRING_LIMIT
Definition computation.h:70
@ COMP_DONE_GB_LIMIT
Definition computation.h:65
@ COMP_DONE_CODIM
Definition computation.h:67
@ COMP_DONE_SYZ_LIMIT
Definition computation.h:66
@ COMP_COMPUTING
Definition computation.h:71
const int GB_COMP_DONE
Definition gb-homog2.hpp:56

References _n_gb, _n_gens_left, _n_pairs_computed, _n_subring, _n_syz, _state, COMP_COMPUTING, COMP_DONE, COMP_DONE_CODIM, COMP_DONE_GB_LIMIT, COMP_DONE_MIN_GENS, COMP_DONE_PAIR_LIMIT, COMP_DONE_SUBRING_LIMIT, COMP_DONE_SYZ_LIMIT, GB_COMP_DONE, and Computation::stop_.

Referenced by start_computation().