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

◆ createNCRes()

ResolutionComputation * createNCRes ( const Matrix * gbModuleMatrix,
int max_level,
int strategy )

Definition at line 15 of file nc-res-computation.cpp.

18{
19 (void) strategy;
20 const M2FreeAlgebraQuotient* ring = gbModuleMatrix->get_ring()->cast_to_M2FreeAlgebraQuotient();
21 if (ring != nullptr)
22 return new NCResComputation(ring->freeAlgebraQuotient(),*gbModuleMatrix,max_level);
23 ERROR("Expected a Matrix over a FreeAlgebraQuotient");
24 return nullptr;
25}
const FreeAlgebraQuotient & freeAlgebraQuotient() const
Concrete Ring wrapper around an owned FreeAlgebraQuotient (the quotient counterpart of M2FreeAlgebra)...
const Ring * get_ring() const
Definition matrix.hpp:134
ResolutionComputation subclass that builds a free resolution over a FreeAlgebraQuotient (non-commutat...
virtual const M2FreeAlgebraQuotient * cast_to_M2FreeAlgebraQuotient() const
Definition ring.hpp:258
const int ERROR
Definition m2-mem.cpp:55

Referenced by ResolutionComputation::choose_res().