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

◆ search()

int MonomialIdeal::search ( const_varpower m,
Bag *& b ) const

Definition at line 278 of file monideal.cpp.

279{
280 exponents_t exp = ARRAY_ON_STACK(int, get_ring()->n_vars());
281 varpower::to_expvector(get_ring()->n_vars(), m, exp);
282 return search_expvector(exp, b);
283}
exponents::Exponents exponents_t
static void to_expvector(int n, ConstExponents a, exponents::Exponents result)
int search_expvector(const_exponents m, Bag *&b) const
Definition monideal.cpp:214
const PolynomialRing * get_ring() const
Definition monideal.hpp:190
const mpreal exp(const mpreal &x, mp_rnd_t r=mpreal::get_default_rnd())
Definition mpreal.h:2298
#define ARRAY_ON_STACK(type, nelems)
ARRAY_ON_STACK.

References ARRAY_ON_STACK, get_ring(), search_expvector(), and ExponentList< int, true >::to_expvector().

Referenced by insert(), intersect(), iquotient_and_sum(), MonomialIdeal(), and MonomialIdeal().