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

◆ start_degree()

int gb_emitter::start_degree ( int deg)
private

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

56{
57 this_degree = deg;
58 n_gens = 0;
59 n_i = 0;
60 for (int i = 0; i < gens->n_cols(); i++)
61 {
62 if (gens->cols()->primary_degree(i) == this_degree) these[n_gens++] = i;
63 }
64 return n_gens;
65}
int n_gens
Definition res-a2.hpp:73
const Matrix * gens
Definition res-a2.hpp:68
int * these
Definition res-a2.hpp:74
int this_degree
Definition res-a2.hpp:70

References gens, n_gens, n_i, these, and this_degree.

Referenced by calc_gb().