385{
387 mat.set_entry(0, 0, a);
388 mat.set_entry(0, 1, b);
389 Matrix *m = mat.to_matrix();
391 for (
int i = 0; i <
n_vars(); i++) weights->array[i] = 1;
393 true,
394 -1,
395 weights,
396 false,
397 -1,
398 0,
399 0,
400 0
401
402 );
403 G->set_stop_conditions(
false,
404 nullptr,
405 -1,
406 1,
407 -1,
408 -1,
409 -1,
410 false,
411 nullptr);
412 G->start_computation();
413 const Matrix *
s =
G->get_syzygies();
414
415
419 ring_elem x1 =
mult(c,
x);
420 ring_elem y1 =
mult(c, y);
422 y = y1;
423}
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)
virtual ring_elem preferred_associate(ring_elem f) const
virtual ring_elem mult(const ring_elem f, const ring_elem g) const
virtual FreeModule * make_FreeModule() const
M2_arrayint M2_makearrayint(int n)