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

◆ rawResolutionBetti()

M2_arrayint rawResolutionBetti ( Computation * G,
int type )

Definition at line 617 of file groebner.cpp.

619{
620 try
621 {
622 ResolutionComputation *G = C->cast_to_ResolutionComputation();
623 if (G != nullptr) return G->get_betti(type);
624 ERROR("expected resolution computation type");
625 return nullptr;
626 } catch (const exc::engine_error& e)
627 {
628 ERROR(e.what());
629 return nullptr;
630 }
631}
Base class for free resolution computation classes.
Definition comp-res.hpp:52
const int ERROR
Definition m2-mem.cpp:55
tbb::flow::graph G

References Computation::cast_to_ResolutionComputation(), ERROR, and G.