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

◆ borel1()

void borel1 ( VECTOR(Bag *) & result,
exponents_t m,
int loc,
int nvars )
static

Definition at line 918 of file monideal.cpp.

919{
920 if (loc == 0)
921 {
922 Bag *b = new Bag();
923 varpower::from_expvector(nvars, m, b->monom());
924 result.push_back(b);
925 }
926 else
927 {
928 int a = m[loc];
929 for (int i = 0; i <= a; i++)
930 {
931 borel1(result, m, loc - 1, nvars);
932 m[loc]--;
933 m[loc - 1]++;
934 }
935 m[loc] += a + 1;
936 m[loc - 1] -= a + 1;
937 }
938}
static void from_expvector(int n, exponents::ConstExponents a, Vector &result)
gc_vector< int > & monom()
Definition int-bag.hpp:60
int_bag Bag
Definition int-bag.hpp:70
VALGRIND_MAKE_MEM_DEFINED & result(result)
static void borel1(VECTOR(Bag *) &result, exponents_t m, int loc, int nvars)
Definition monideal.cpp:918

References borel1(), ExponentList< int, true >::from_expvector(), int_bag::monom(), and result().

Referenced by MonomialIdeal::borel(), and borel1().