2 #include "monomial.hpp" 38 WT_TYPE wts[4] = { 6, 4, 3, 2 };
39 list<Monomial> T { w, x2 };
41 cout << p.first <<
',' << p.second <<
"; ";
46 cout << p.first <<
',' << p.second <<
"; ";
49 cout << p.first <<
',' << p.second <<
"; ";
52 cout << p.first <<
',' << p.second <<
"; ";
56 WT_TYPE wts2[4] = { 4, 3, 1, 2 };
57 list<Monomial> U { w, x2, x1x32, x1x22x3 };
59 cout << p.first <<
',' << p.second <<
"; ";
62 cout << p.first <<
',' << p.second <<
"; ";
65 cout << p.first <<
',' << p.second <<
"; ";
68 cout << p.first <<
',' << p.second <<
"; ";
71 cout << p.first <<
',' << p.second <<
"; ";
74 cout << p.first <<
',' << p.second <<
"; ";
78 list<Monomial> V { w, x2, x1x32, x1x22x3, x22x33, x1x24 };
80 cout << p.first <<
',' << p.second <<
"; ";
map< DEG_TYPE, unsigned long > incremental_betti(const list< Monomial > &T, const WT_TYPE *grading)
Incremental Betti numbers for monomial ideals.
Implementation of monomials.