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

◆ reset()

void hilb_comp::reset ( )

Definition at line 325 of file hilb.cpp.

326{
327 depth = 0;
328 if (current == nullptr)
329 {
330 current = new hilb_step;
331 current->up = current->down = nullptr;
332 current->h0 = R->from_long(0);
333 current->h1 = R->from_long(0);
334 }
335 else
336 while (current->up != nullptr) current = current->up;
337
338 R->remove(current->h0); // This line should not be needed...
339 R->remove(current->h1);
340 current->h0 = R->from_long(0); // This top level h0 is not used
341 current->h1 = R->from_long(1);
342}
const PolynomialRing * R
Definition hilb.hpp:95
hilb_step * current
Definition hilb.hpp:110
int depth
Definition hilb.hpp:114

References current, depth, and R.

Referenced by hilb_comp(), and next_monideal().