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

◆ rawResolutionGetMatrix()

const Matrix * rawResolutionGetMatrix ( Computation * G,
int level )

Definition at line 486 of file groebner.cpp.

487{
488 try
489 {
491 ResolutionComputation *G = C->cast_to_ResolutionComputation();
492 if (G != nullptr) return G->get_matrix(level);
493 ERROR("expected resolution computation type");
494 return nullptr;
495 } catch (const exc::engine_error& e)
496 {
497 ERROR(e.what());
498 return nullptr;
499 }
500}
Base class for free resolution computation classes.
Definition comp-res.hpp:52
const int ERROR
Definition m2-mem.cpp:55
tbb::flow::graph G
void clear_emit_size()
Definition text-io.cpp:26

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