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

◆ computation_is_complete()

enum ComputationStatusCode F4GB::computation_is_complete ( StopConditions & stop_)
private

Definition at line 1092 of file f4.cpp.

1093{
1094 // This handles everything but stop_.always, stop_.degree_limit
1095 if (stop_.basis_element_limit > 0 && mGroebnerBasis.size() >= stop_.basis_element_limit)
1096 return COMP_DONE_GB_LIMIT;
1097 if (stop_.pair_limit > 0 && n_pairs_computed >= stop_.pair_limit)
1098 return COMP_DONE_PAIR_LIMIT;
1099 if (stop_.just_min_gens && n_gens_left == 0) return COMP_DONE_MIN_GENS;
1100 if (stop_.subring_limit > 0 && n_subring >= stop_.subring_limit)
1102 if (stop_.use_codim_limit)
1103 {
1104#ifdef DEVELOPMENT
1105#warning "compute the codimension"
1106#endif
1107 int c = 0; // replace this line
1108 // int c = codim_of_lead_terms();
1109 if (c >= stop_.codim_limit) return COMP_DONE_CODIM;
1110 }
1111 return COMP_COMPUTING;
1112}
long n_pairs_computed
Definition f4.hpp:166
int n_subring
Definition f4.hpp:169
int n_gens_left
Definition f4.hpp:168
gb_array mGroebnerBasis
Definition f4.hpp:181
@ COMP_DONE_MIN_GENS
Definition computation.h:68
@ 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_CODIM
Definition computation.h:67
@ COMP_COMPUTING
Definition computation.h:71
unsigned int subring_limit
Definition computation.h:99
M2_bool use_codim_limit
Definition computation.h:97
M2_bool just_min_gens
unsigned int codim_limit
Definition computation.h:98
unsigned int basis_element_limit
Definition computation.h:94
unsigned int pair_limit
Definition computation.h:96

References StopConditions::basis_element_limit, StopConditions::codim_limit, COMP_COMPUTING, COMP_DONE_CODIM, COMP_DONE_GB_LIMIT, COMP_DONE_MIN_GENS, COMP_DONE_PAIR_LIMIT, COMP_DONE_SUBRING_LIMIT, StopConditions::just_min_gens, mGroebnerBasis, n_gens_left, n_pairs_computed, n_subring, StopConditions::pair_limit, StopConditions::subring_limit, and StopConditions::use_codim_limit.

Referenced by start_computation().