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

◆ computation_is_complete()

ComputationStatusCode gbA::computation_is_complete ( )
private

Definition at line 2354 of file gb-default.cpp.

2355{
2356 // This handles everything but stop_.always, stop_.degree_limit
2357 if (stop_.basis_element_limit > 0 && gb.size() >= stop_.basis_element_limit)
2358 return COMP_DONE_GB_LIMIT;
2359 if (stop_.syzygy_limit > 0 && n_syz >= stop_.syzygy_limit)
2360 return COMP_DONE_SYZ_LIMIT;
2361 if (stop_.pair_limit > 0 && n_pairs_computed >= stop_.pair_limit)
2362 return COMP_DONE_PAIR_LIMIT;
2363 if (stop_.just_min_gens && n_gens_left == 0) return COMP_DONE_MIN_GENS;
2364 if (stop_.subring_limit > 0 && n_subring >= stop_.subring_limit)
2366 if (stop_.use_codim_limit)
2367 {
2368 // Compute the codimension
2369 int c = 0;
2370 // int c = codim_of_lead_terms();
2371 if (c >= stop_.codim_limit) return COMP_DONE_CODIM;
2372 }
2373 return COMP_COMPUTING;
2374}
StopConditions stop_
Definition comp.hpp:75
int n_gens_left
int n_pairs_computed
int n_subring
int n_syz
@ 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_DONE_SYZ_LIMIT
Definition computation.h:66
@ COMP_COMPUTING
Definition computation.h:71
void gb(IntermediateBasis &F, int n)

References COMP_COMPUTING, COMP_DONE_CODIM, COMP_DONE_GB_LIMIT, COMP_DONE_MIN_GENS, COMP_DONE_PAIR_LIMIT, COMP_DONE_SUBRING_LIMIT, COMP_DONE_SYZ_LIMIT, gb(), n_gens_left, n_pairs_computed, n_subring, n_syz, and Computation::stop_.

Referenced by do_computation().