Implements GBComputation.
Definition at line 461 of file hermite.cpp.
463{
465 {
466 ERROR(
"expected matrix over ZZ");
467 return nullptr;
468 }
470 {
471 ERROR(
"expected matrices to have same number of rows");
472 return nullptr;
473 }
475 for (
int i = 0; i < m->
n_cols(); i++)
476 {
478
480 mat_remainder.set_column(i, f);
481 }
482 return mat_remainder.to_matrix();
483}
void gb_reduce(vec &f) const
const_monomial degree_shift() const
const Ring * get_ring() const
ring_elem elem(int i, int j) const
const FreeModule * rows() const
const FreeModule * cols() const
vec copy_vec(const vecterm *v) const
References Matrix::cols(), Matrix::degree_shift(), Matrix::elem(), ERROR, gb_reduce(), gens, Matrix::get_ring(), globalZZ, Matrix, Matrix::n_cols(), Matrix::n_rows(), Matrix::rows(), MatrixConstructor::set_column(), and MatrixConstructor::to_matrix().