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

◆ complete_thru_degree()

int res2_comp::complete_thru_degree ( ) const
virtual

Implements ResolutionComputation.

Definition at line 24 of file res-a0.cpp.

25{
26 int lo = hidegree + 1;
27 int len = resn.size() - 1;
28 for (int lev = 0; lev <= len; lev++)
29 {
30 for (res2_pair *p = resn[lev]->pairs; p != nullptr; p = p->next)
31 {
32 if (p->syz_type != SYZ2_S_PAIR) continue;
33 int d = p->degree;
34 if (d < lo) lo = d;
35 }
36 }
37 return lodegree + lo - 1;
38}
int hidegree
Definition res-a0.hpp:138
int lodegree
Definition res-a0.hpp:137
int p
@ SYZ2_S_PAIR

References hidegree, lodegree, p, and SYZ2_S_PAIR.