realroot_doc 0.1.1
Monomials

The implementation of monomials is provided by the class

template<class C, class E> struct monom<C,E>
Parameters:
Cis the coefficient type.
Eis the exponent type.

The container E should provide the following definitions:

typedef E::exponent_type;
typedef E::index_type
exponent_type E::operator[](index_type i);
void E::set_expt(index_type i, exponent_type d);
Example:
typedef monom<double> Monomial;

Monomial m1(1.1),      // construction of 1.1 as constant monomial; 
         m2(0, 3),     // construction of x0^3;
         m3(2.2,2,5);  // construction of 2.2*x2^5;

Monomial m=m2*m3,      // gives 2.2*x0^3*x2^5;
See: