Definition at line 285 of file ring.cpp.
286{
288 try {
289 if (A == nullptr)
290 {
291 ERROR(
"internal error: expected non-null Ring!");
292 return nullptr;
293 }
295 if (P == nullptr)
296 {
297 ERROR(
"expected a free algebra");
298 return nullptr;
299 }
300
303 }
306 return nullptr;
307 }
308}
Concrete Ring wrapper around an owned FreeAlgebra (no quotient).
static M2FreeAlgebraQuotient * create(const M2FreeAlgebra &F, const Matrix *GB, int maxdeg)
Concrete Ring wrapper around an owned FreeAlgebraQuotient (the quotient counterpart of M2FreeAlgebra)...
const Ring * get_ring() const
virtual const M2FreeAlgebra * cast_to_M2FreeAlgebra() const
VALGRIND_MAKE_MEM_DEFINED & result(result)
References Ring::cast_to_M2FreeAlgebra(), M2FreeAlgebraQuotient::create(), ERROR, Matrix::get_ring(), Matrix, and result().