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

◆ IM2_res_make()

Computation * IM2_res_make ( const Matrix * m,
M2_bool resolve_cokernel,
int max_level,
M2_bool use_max_slanted_degree,
int max_slanted_degree,
int algorithm,
int strategy,
M2_bool parallelizeByDegree )

Definition at line 124 of file groebner.cpp.

132{
133 try
134 {
136 // Choose the correct computation here.
137
138 // XXX
139
140 // Grab max number of threads (settable from the front end).
141 int numThreads = M2_numTBBThreads; // settable from front end.
142 //std::cout << "Using numThreads = " << numThreads << std::endl;
143
146 resolve_cokernel,
147 max_level,
148 use_max_slanted_degree,
149 max_slanted_degree,
150 algorithm,
151 strategy,
152 numThreads,
153 parallelizeByDegree);
154 } catch (const exc::engine_error& e)
155 {
156 ERROR(e.what());
157 return nullptr;
158 }
159}
const Ring * get_ring() const
Definition matrix.hpp:134
static ResolutionComputation * choose_res(const Matrix *m, M2_bool resolve_cokernel, int max_level, M2_bool use_max_slanted_degree, int max_slanted_degree, int algorithm, int strategy, int numThreads, M2_bool parallelizeByDegree)
Definition comp-res.cpp:16
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 ResolutionComputation::choose_res(), clear_emit_size(), ERROR, Matrix::get_ring(), M2_numTBBThreads, Matrix, and test_over_RR_or_CC().