Monomials

They are parameterised by a coefficient type C and an exponent type R:

template<class C, class R> struct Monom;

The container R should provide the following definitions:

typedef R::exponent_type;
typedef R::intex_type
exponent_type R::operator[](index_type i);
void R::.setExponent(index_type i, exponent_type d);

This class allows to define monomials with arbitrary variables: {x1, a, b, aa,...}. A static association table stores the correspondance between the variables read and their index in R.

Implementation

See also:
synaps/mpol/Monomial.h

SYNAPS DOCUMENTATION
logo