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

◆ increase_level()

void res2_comp::increase_level ( int newmax)

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

76{
77 for (int i = resn.size(); i <= newmax + 2; i++)
78 {
79 res2_level *p = new res2_level;
80 p->pairs = nullptr;
81 p->next_pair = nullptr;
82 p->state = RES_SKELETON;
83 p->npairs = 0;
84 p->nleft = 0;
85 p->nminimal = 0;
86 p->nthrown = 0;
87 resn.push_back(p);
88 }
89 length_limit = newmax;
90}
int length_limit
Definition res-a0.hpp:147
int p
@ RES_SKELETON
Definition res-a0.hpp:49

References length_limit, p, and RES_SKELETON.

Referenced by initialize(), and start_computation().