Developer documentation

mmx::monom< C, E > Struct Template Reference

Monomial class. More...

#include <monomial.hpp>

Public Types

typedef E exp_t
 
typedef int index_t
 
typedef E container_t
 
typedef E::exponent_t exponent_t
 
typedef E::size_type size_type
 
typedef C coeff_t
 
typedef C Scalar
 
typedef Monomial self_t
 

Public Member Functions

E & rep ()
 
const E & rep () const
 
 monom ()
 
 monom (const C &c, const exp_t &r)
 
 monom (const C &c)
 
 monom (int i)
 
 monom (const std::string &s, int d, const variables &vars)
 monom x[i]**d More...
 
 monom (const C &c, unsigned s, const AsSize &)
 
 monom (const C &c, int d, unsigned i)
 monom c*x[i]**d More...
 
 monom (const C &c, int s, int *t)
 
 monom (const char *, variables &vars=monom::var)
 
 monom (const monom &m)
 
self_toperator= (const self_t &m)
 
const Ccoeff () const
 
Ccoeff ()
 
void set_coeff (const C &c)
 
int * begin ()
 
int * begin () const
 
unsigned size () const
 
int nvars () const
 
int l_variable () const
 
unsigned nbvar () const
 
exponent_t operator[] (size_type i) const
 
exponent_t expt (size_type i) const
 
exponent_t exponent (size_type i) const
 
self_tset_expt (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

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

Detailed Description

template<class C, class E = dynamic_exp<int>>
struct mmx::monom< C, E >

Monomial class.

Member Typedef Documentation

template<class C, class E = dynamic_exp<int>>
typedef C mmx::monom< C, E >::coeff_t
template<class C, class E = dynamic_exp<int>>
typedef E mmx::monom< C, E >::container_t
template<class C, class E = dynamic_exp<int>>
typedef E mmx::monom< C, E >::exp_t
template<class C, class E = dynamic_exp<int>>
typedef E::exponent_t mmx::monom< C, E >::exponent_t
template<class C, class E = dynamic_exp<int>>
typedef int mmx::monom< C, E >::index_t
template<class C, class E = dynamic_exp<int>>
typedef C mmx::monom< C, E >::Scalar
template<class C, class E = dynamic_exp<int>>
typedef Monomial mmx::monom< C, E >::self_t
template<class C, class E = dynamic_exp<int>>
typedef E::size_type mmx::monom< C, E >::size_type

Constructor & Destructor Documentation

template<class C, class E = dynamic_exp<int>>
mmx::monom< C, E >::monom ( )
inline
template<class C, class E = dynamic_exp<int>>
mmx::monom< C, E >::monom ( const C c,
const exp_t r 
)
inline
template<class C, class E = dynamic_exp<int>>
mmx::monom< C, E >::monom ( const C c)
inline
template<class C, class E = dynamic_exp<int>>
mmx::monom< C, E >::monom ( int  i)
inline
template<class C, class E = dynamic_exp<int>>
mmx::monom< C, E >::monom ( const std::string &  s,
int  d,
const variables vars 
)

monom x[i]**d

template<class C, class E = dynamic_exp<int>>
mmx::monom< C, E >::monom ( const C c,
unsigned  s,
const AsSize  
)
inline
template<class C, class E = dynamic_exp<int>>
mmx::monom< C, E >::monom ( const C c,
int  d,
unsigned  i 
)

monom c*x[i]**d

template<class C, class E = dynamic_exp<int>>
mmx::monom< C, E >::monom ( const C c,
int  s,
int *  t 
)
inline
template<class C, class E = dynamic_exp<int>>
mmx::monom< C, E >::monom ( const char *  ,
variables vars = monomC, E >::var 
)
template<class C, class E = dynamic_exp<int>>
mmx::monom< C, E >::monom ( const monom< C, E > &  m)
inline

Member Function Documentation

template<class C, class E = dynamic_exp<int>>
int* mmx::monom< C, E >::begin ( )
inline
template<class C, class E = dynamic_exp<int>>
int* mmx::monom< C, E >::begin ( ) const
inline
template<class C, class E = dynamic_exp<int>>
const C& mmx::monom< C, E >::coeff ( ) const
inline
template<class C, class E = dynamic_exp<int>>
C& mmx::monom< C, E >::coeff ( )
inline
template<class C, class E = dynamic_exp<int>>
exponent_t mmx::monom< C, E >::exponent ( size_type  i) const
inline
template<class C, class E = dynamic_exp<int>>
exponent_t mmx::monom< C, E >::expt ( size_type  i) const
inline
template<class C, class E = dynamic_exp<int>>
int mmx::monom< C, E >::l_variable ( ) const
inline
template<class C, class E = dynamic_exp<int>>
unsigned mmx::monom< C, E >::nbvar ( ) const
inline
template<class C, class E = dynamic_exp<int>>
int mmx::monom< C, E >::nvars ( ) const
inline
template<class C, class E = dynamic_exp<int>>
bool mmx::monom< C, E >::operator!= ( int  n) const
inline
template<class C, class E = dynamic_exp<int>>
self_t& mmx::monom< C, E >::operator*= ( const self_t )
template<class C, class E = dynamic_exp<int>>
self_t& mmx::monom< C, E >::operator*= ( const C )
template<class C, class E = dynamic_exp<int>>
self_t& mmx::monom< C, E >::operator+= ( const self_t )
template<class C, class E = dynamic_exp<int>>
self_t mmx::monom< C, E >::operator- ( ) const
inline
template<class C, class E = dynamic_exp<int>>
self_t& mmx::monom< C, E >::operator-= ( const self_t )
template<class C, class E = dynamic_exp<int>>
self_t& mmx::monom< C, E >::operator/= ( const C )
template<class C, class E = dynamic_exp<int>>
self_t& mmx::monom< C, E >::operator= ( const self_t m)
inline
template<class C, class E = dynamic_exp<int>>
bool mmx::monom< C, E >::operator== ( int  n) const
template<class C, class E = dynamic_exp<int>>
exponent_t mmx::monom< C, E >::operator[] ( size_type  i) const
inline
template<class C, class E = dynamic_exp<int>>
E& mmx::monom< C, E >::rep ( )
inline
template<class C, class E = dynamic_exp<int>>
const E& mmx::monom< C, E >::rep ( ) const
inline
template<class C, class E = dynamic_exp<int>>
void mmx::monom< C, E >::set_coeff ( const C c)
inline
template<class C, class E = dynamic_exp<int>>
self_t& mmx::monom< C, E >::set_expt ( size_type  i,
exponent_t  d 
)
inline
template<class C, class E = dynamic_exp<int>>
unsigned mmx::monom< C, E >::size ( void  ) const
inline

Friends And Related Function Documentation

template<class C, class E = dynamic_exp<int>>
bool IsComparable ( const self_t m1,
const self_t m2 
)
friend
template<class C, class E = dynamic_exp<int>>
bool operator!= ( const self_t m1,
const self_t m2 
)
friend
template<class C, class E = dynamic_exp<int>>
bool operator== ( const self_t m1,
const self_t m2 
)
friend

Member Data Documentation

template<class C, class E = dynamic_exp<int>>
C mmx::monom< C, E >::_coef
template<class C, class E = dynamic_exp<int>>
E mmx::monom< C, E >::_expt
template<class C, class E = dynamic_exp<int>>
variables mmx::monom< C, E >::var
static

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