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

◆ make_gb()

GBComputation * GBWalker::make_gb ( const Matrix * M) const
private

Definition at line 102 of file gb-walk.cpp.

104{
105 M2_arrayint weights = M2_makearrayint(R->n_vars());
106 for (int i = 0; i < R->n_vars(); i++) weights->array[i] = 1;
107
109 false, // collect syz
110 -1,
111 weights,
112 false,
113 -1,
114 0,
115 0,
116 0 // TBB numThreads
117 /* , max_reduction_count */
118 );
119 G0->set_stop_conditions(false,
120 nullptr,
121 -1,
122 -1, // syzygy limit
123 -1,
124 -1,
125 -1,
126 false,
127 nullptr);
128 return G0;
129}
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 comp.cpp:11
static GBComputation * choose_gb(const Matrix *m, M2_bool collect_syz, int n_rows_to_keep, M2_arrayint gb_weights, M2_bool use_max_degree, int max_degree, int algorithm, int strategy, int numThreads, int max_reduction_count=10)
Definition comp-gb.cpp:39
const GBRing * R
Definition gb-walk.hpp:59
M2_arrayint M2_makearrayint(int n)
Definition m2-types.cpp:6

References GBComputation::choose_gb(), GBComputation::GBComputation(), M2_makearrayint(), Matrix, R, and Computation::set_stop_conditions().

Referenced by start_computation().