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

◆ hilbertNumerator()

RingElement * gb2_comp::hilbertNumerator ( )
virtual

Implements gb_node.

Definition at line 846 of file res-a2-gb.cpp.

847{
848 if (hf_numgens_gb == n_gb && hf_numgens_F == F->rank())
849 {
850 return hf;
851 }
852
853 Matrix *hf_matrix = make_lead_term_matrix();
854 hf = hilb_comp::hilbertNumerator(hf_matrix);
855
856 // hf is NULL if the computation was interrupted
857 if (hf == nullptr) return nullptr;
858
859 hf_numgens_F = F->rank();
861
862 return hf;
863}
RingElement * hf
Definition res-a2.hpp:165
int hf_numgens_F
Definition res-a2.hpp:168
int n_gb
Definition res-a2.hpp:141
Matrix * make_lead_term_matrix()
FreeModule * F
Definition res-a2.hpp:120
int hf_numgens_gb
Definition res-a2.hpp:166
static RingElement * hilbertNumerator(const Matrix *M)
Definition hilb.cpp:665
#define Matrix
Definition factory.cpp:14

References F, hf, hf_numgens_F, hf_numgens_gb, hilb_comp::hilbertNumerator(), make_lead_term_matrix(), Matrix, and n_gb.

Referenced by calc_gb().