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

◆ setDegree()

bool HilbertController::setDegree ( int this_degree)

Definition at line 42 of file hilb-fcn.cpp.

43{
44 // Recomputes Hilbert function, returns #elems expected in degree this_degree
45 // There should be NO elements expected in lower degrees than that.
46 // false is returned if either the computation was interrupted, or
47 // it was determined that the Hilbert function could not be correct
48 // (by expecting a negative number of elements).
49 if (!recomputeHilbertFunction()) return false;
51 if (error()) return false;
52 return true;
53}
RingElement * hf_diff
Definition hilb-fcn.hpp:91
bool recomputeHilbertFunction()
Definition hilb-fcn.cpp:68
static int coeff_of(const RingElement *h, int deg)
Definition hilb.cpp:704
int error()
Definition error.c:48

References hilb_comp::coeff_of(), error(), hf_diff, hilb_n_in_degree, and recomputeHilbertFunction().