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

◆ free_module()

const FreeModule * gbres_comp::free_module ( int level) const

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

275{
276 if (level >= 0 && level <= n_nodes - 1)
277 return const_cast<FreeModule *>(nodes[level]->output_free_module());
278 return nodes[0]->output_free_module()->get_ring()->make_FreeModule();
279}
int n_nodes
Definition res-a2.hpp:253
gb_node ** nodes
Definition res-a2.hpp:254

References n_nodes, and nodes.

Referenced by betti_minimal(), change_matrix(), gb_matrix(), get_free(), get_matrix(), initial_matrix(), and min_gens_matrix().