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

◆ to_partition()

void SchurRing::to_partition ( const int * m,
int * exp ) const
private

Definition at line 120 of file schur.cpp.

122{
123 exponents_t EXP1 = ALLOCATE_EXPONENTS(exp_size); // 0..nvars-1
124 // remark: exp_size is defined in an ancestor class of SchurRing
125 M_->to_expvector(m, EXP1);
126 exp[nvars_] = EXP1[nvars_ - 1];
127 for (int i = nvars_ - 1; i >= 1; i--) exp[i] = exp[i + 1] + EXP1[i - 1];
128}
exponents::Exponents exponents_t
const Monoid * M_
Definition polyring.hpp:124
#define ALLOCATE_EXPONENTS(byte_len)
Definition monoid.hpp:62
const mpreal exp(const mpreal &x, mp_rnd_t r=mpreal::get_default_rnd())
Definition mpreal.h:2298

References ALLOCATE_EXPONENTS, PolynomialRing::exp_size, PolynomialRing::M_, and PolynomialRing::nvars_.

Referenced by dimension(), elem_text_out(), and mult_monomials().