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

◆ get_matrix()

const Matrix * gbres_comp::get_matrix ( int level)
virtual

Implements ResolutionComputation.

Definition at line 286 of file res-a2.cpp.

287{
288 if (level <= 0 || level >= n_nodes)
289 return Matrix::zero(free_module(level - 1), free_module(level));
290 return nodes[level]->get_matrix();
291}
static Matrix * zero(const FreeModule *F, const FreeModule *G)
Definition matrix.cpp:369
int n_nodes
Definition res-a2.hpp:253
gb_node ** nodes
Definition res-a2.hpp:254
const FreeModule * free_module(int level) const
Definition res-a2.cpp:274

References free_module(), Matrix, n_nodes, and nodes.