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

◆ IM2_GB_make()

Computation * IM2_GB_make ( 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 max_reduction_count )

Definition at line 90 of file groebner.cpp.

100{
101 // Choose the correct computation here.
102 try
103 {
106 int numThreads = M2_numTBBThreads; // settable from front end.
108 collect_syz,
109 n_rows_to_keep,
110 gb_weights,
111 use_max_degree,
112 max_degree,
113 algorithm,
114 strategy,
115 numThreads,
116 max_reduction_count);
117 } catch (const exc::engine_error& e)
118 {
119 ERROR(e.what());
120 return nullptr;
121 }
122}
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 Ring * get_ring() const
Definition matrix.hpp:134
void test_over_RR_or_CC(const Ring *R)
Definition groebner.cpp:38
const int ERROR
Definition m2-mem.cpp:55
int M2_numTBBThreads
Definition m2-types.cpp:51
void clear_emit_size()
Definition text-io.cpp:26

References GBComputation::choose_gb(), clear_emit_size(), ERROR, Matrix::get_ring(), M2_numTBBThreads, Matrix, and test_over_RR_or_CC().