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

◆ set_hilbert_function()

Computation * GB_comp::set_hilbert_function ( const RingElement * h)
virtual

Reimplemented from GBComputation.

Definition at line 989 of file gb-homog2.cpp.

990{
991 // TODO Problems here:
992 // -- check that the ring is correct
993 // -- if the computation has already been started, this will fail
994 // So probably an error should be given, and 0 returned in this case.
995 _hf_orig = hf;
997 _use_hilb = true;
998 _hilb_new_elems = true;
999 return this;
1000}
bool _hilb_new_elems
bool _use_hilb
RingElement * _hf_diff
const RingElement * _hf_orig
static RingElement * make_raw(const Ring *R, ring_elem f)
Definition relem.cpp:20
#define ZERO_RINGELEM
Definition ring.hpp:677

References _hf_diff, _hf_orig, _hilb_new_elems, _use_hilb, Computation::Computation(), RingElement::get_ring(), RingElement::make_raw(), and ZERO_RINGELEM.