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

◆ set_stop_conditions()

Computation * Computation::set_stop_conditions ( M2_bool always_stop,
M2_arrayint degree_limit,
int basis_element_limit,
int syzygy_limit,
int pair_limit,
int codim_limit,
int subring_limit,
M2_bool just_min_gens,
M2_arrayint length_limit )

Definition at line 11 of file comp.cpp.

21{
22 stop_.always_stop = always_stop;
23 stop_.stop_after_degree = (degree_limit != nullptr && degree_limit->len > 0);
24 stop_.degree_limit = degree_limit;
25 stop_.basis_element_limit = basis_element_limit;
26 stop_.syzygy_limit = syzygy_limit;
27 stop_.pair_limit = pair_limit;
28 stop_.use_codim_limit = (codim_limit >= 0);
29 stop_.codim_limit = codim_limit;
30 stop_.subring_limit = subring_limit;
31 stop_.just_min_gens = just_min_gens;
32 stop_.length_limit = length_limit;
33
35 return this;
36 else
37 return nullptr;
38}
StopConditions stop_
Definition comp.hpp:75
virtual bool stop_conditions_ok()=0

References Computation(), stop_, and stop_conditions_ok().

Referenced by GBWalker::make_gb(), and SchreyerFrame::rankUsingSparseMatrix().