C
the arithmetic class of the coefficients and R
a container of int to store the powers.
Definition at line 33 of file Monom.h.
Public Types | |
typedef R | exp_t |
typedef int | index_t |
typedef R | container_t |
typedef R::exponent_t | exponent_t |
typedef R::size_type | size_type |
typedef C | coeff_t |
typedef Monom< C, R > | self_t |
Public Member Functions | |
R & | rep () |
const R & | rep () const |
Monom () | |
Monom (const C &c, const exp_t &r) | |
Monom (const C &c) | |
Monom (int i) | |
Monom (int i, int d) | |
Construction of the monomial $x_{i}^{d}$. | |
Monom (const std::string &s, int d, Variables &vars=Variables::default_) | |
Construction of the monomial $x_{i}^{d}$. | |
Monom (const C &c, unsigned s, const type::AsSize &S) | |
Monom (const C &c, int i, int d=1) | |
Construction of the monomial $c\,x_{i}^{d}$. | |
Monom (const C &c, int s, int *t) | |
Monom (const Monom &m) | |
template<class S> | |
Monom (const VAL< S > &M) | |
self_t & | operator= (const self_t &m) |
template<class S> | |
self_t & | operator= (const VAL< S > &M) |
const C & | coeff () const |
C & | coeff () |
void | setcoeff (const C &c) |
unsigned | size () const |
int | nvars () const |
int | nbvar () const |
exponent_t | operator[] (size_type i) const |
self_t & | setexpt (size_type i, exponent_t d) |
bool | operator== (int n) const |
bool | operator!= (int n) const |
self_t | operator- () const |
self_t & | operator+= (const self_t &) |
self_t & | operator-= (const self_t &) |
self_t & | operator *= (const self_t &) |
self_t & | operator *= (const C &) |
self_t & | operator/= (const C &) |
Public Attributes | |
C | _coef |
R | _expt |
Static Public Attributes | |
static Variables | var |
Friends | |
bool | operator== (const self_t &m1, const self_t &m2) |
bool | operator!= (const self_t &m1, const self_t &m2) |
bool | IsComparable (const self_t &m1, const self_t &m2) |
Construction of the monomial $x_{i}^{d}$.
Definition at line 261 of file Monom.h.
References Monom< C, R >::rep().
Monom< C, R >::Monom | ( | const std::string & | s, | |
int | d, | |||
Variables & | vars = Variables::default_ | |||
) |
Construction of the monomial $x_{i}^{d}$.
Definition at line 276 of file Monom.h.
References Monom< C, R >::rep().
Construction of the monomial $c\,x_{i}^{d}$.
Definition at line 294 of file Monom.h.
References Monom< C, R >::rep().