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

◆ calc_gens()

enum ComputationStatusCode gb2_comp::calc_gens ( int deg)
virtual

Implements gb_node.

Definition at line 801 of file res-a2-gb.cpp.

802{
803 enum ComputationStatusCode ret;
804 // First check whether we have done this:
805 if (this_degree > deg) return COMP_DONE;
806
807 // First make sure that we have a GB here:
808 ret = calc_gb(deg);
809 if (ret != COMP_DONE) return ret;
810
811 // Go get the generators:
812 ret = gens->calc_gb(deg);
813 if (ret != COMP_DONE) return ret;
814
815 end_degree();
816 return COMP_DONE;
817}
enum ComputationStatusCode calc_gb(int deg)
int this_degree
Definition res-a2.hpp:125
void end_degree()
gb_node * gens
Definition res-a2.hpp:138
ComputationStatusCode
Definition computation.h:53
@ COMP_DONE
Definition computation.h:60

References calc_gb(), COMP_DONE, end_degree(), gens, and this_degree.

Referenced by calc_gb().