Monom< C, R > Struct Template Reference

List of all members.

Detailed Description

template<class C, class R = dynamicexp<unsigned>>
struct Monom< C, R >

Implementation of monomials. The monomial class has tow template parameters, 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_toperator= (const self_t &m)
template<class S>
self_toperator= (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_tsetexpt (size_type i, exponent_t d)
bool operator== (int n) const
bool operator!= (int n) const
self_t operator- () const
self_toperator+= (const self_t &)
self_toperator-= (const self_t &)
self_toperator *= (const self_t &)
self_toperator *= (const C &)
self_toperator/= (const C &)

Public Attributes

_coef
_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)


Constructor & Destructor Documentation

template<class C, class R>
Monom< C, R >::Monom ( int  i,
int  d 
)

Construction of the monomial $x_{i}^{d}$.

Definition at line 261 of file Monom.h.

References Monom< C, R >::rep().

template<class C, class R>
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().

template<class C, class R>
Monom< C, R >::Monom ( const C &  c,
int  i,
int  d = 1 
)

Construction of the monomial $c\,x_{i}^{d}$.

Definition at line 294 of file Monom.h.

References Monom< C, R >::rep().


The documentation for this struct was generated from the following file:

SYNAPS DOCUMENTATION
logo