realroot_doc 0.1.1
|
#include <univariate.hpp>
Array polynomial representation, as a subclass of ::rep1d<C>@.
Definition at line 54 of file univariate.hpp.
typedef C coeff_t |
Definition at line 62 of file univariate.hpp.
typedef iterator const_iterator |
Definition at line 59 of file univariate.hpp.
typedef std::reverse_iterator<const_iterator> const_reverse_iterator |
Definition at line 60 of file univariate.hpp.
typedef C* iterator |
Definition at line 58 of file univariate.hpp.
typedef std::reverse_iterator<iterator> reverse_iterator |
Definition at line 61 of file univariate.hpp.
typedef unsigned int size_type |
Definition at line 57 of file univariate.hpp.
typedef C value_type |
Definition at line 56 of file univariate.hpp.
monomials | ( | ) | [inline] |
Definition at line 68 of file univariate.hpp.
monomials | ( | const C & | c | ) |
Definition at line 116 of file univariate.hpp.
References monomials< C >::tab_.
Definition at line 121 of file univariate.hpp.
References monomials< C >::tab_.
Definition at line 128 of file univariate.hpp.
References mmx::univariate::check_degree(), and monomials< C >::tab_.
Definition at line 146 of file univariate.hpp.
References mmx::univariate::check_degree().
monomials | ( | C * | b, |
C * | e | ||
) |
Definition at line 135 of file univariate.hpp.
References mmx::univariate::check_degree().
Definition at line 110 of file univariate.hpp.
References monomials< C >::tab_.
~monomials | ( | ) | [inline] |
iterator begin | ( | ) | [inline] |
Definition at line 79 of file univariate.hpp.
References monomials< C >::tab_.
const_iterator begin | ( | ) | const [inline] |
Definition at line 80 of file univariate.hpp.
References monomials< C >::tab_.
{return const_iterator(tab_); }
unsigned degree | ( | ) | const [inline] |
Definition at line 95 of file univariate.hpp.
References monomials< C >::degree_.
{ return degree_;}
const_iterator end | ( | ) | const [inline] |
Definition at line 82 of file univariate.hpp.
References monomials< C >::degree_, and monomials< C >::tab_.
{return const_iterator(this->tab_+degree_+1); }
iterator end | ( | ) | [inline] |
Definition at line 81 of file univariate.hpp.
References monomials< C >::degree_, and monomials< C >::tab_.
bool operator== | ( | const C & | c | ) | const |
Definition at line 186 of file univariate.hpp.
References mmx::univariate::degree().
const C& operator[] | ( | size_type | i | ) | const [inline] |
C& operator[] | ( | size_type | i | ) | [inline] |
reverse_iterator rbegin | ( | ) | [inline] |
Definition at line 87 of file univariate.hpp.
References monomials< C >::degree_, and monomials< C >::tab_.
{ return reverse_iterator(this->tab_+degree_+1); }
const_reverse_iterator rbegin | ( | ) | const [inline] |
Definition at line 90 of file univariate.hpp.
References monomials< C >::degree_, and monomials< C >::tab_.
{ return const_reverse_iterator(this->tab_+degree_+1); }
reverse_iterator rend | ( | ) | [inline] |
Definition at line 84 of file univariate.hpp.
References monomials< C >::tab_.
{return reverse_iterator(tab_); }
const_reverse_iterator rend | ( | ) | const [inline] |
Definition at line 85 of file univariate.hpp.
References monomials< C >::tab_.
{return reverse_iterator(tab_); }
void resize | ( | const size_type & | n | ) |
Definition at line 156 of file univariate.hpp.
References mmx::min().
{ if(size_!=i){ if (size_ != 0) { C* tmp = tab_; tab_ = new C[i]; for(size_type j=0;j<std::min(i,size_);j++) tab_[j]=tmp[j]; for(size_type j=std::min(i,size_);j<i;j++) tab_[j]=value_type(); size_=i; delete [] tmp; } else { size_=i; tab_= new C[i]; for(size_type j=0;j<size_;j++) tab_[j]=value_type(); } } degree_=i-1; }
unsigned size | ( | void | ) | const [inline] |
int degree_ |
Definition at line 66 of file univariate.hpp.
Referenced by monomials< C >::degree(), monomials< C >::end(), and monomials< C >::rbegin().
Definition at line 65 of file univariate.hpp.
Referenced by monomials< C >::size().
C* tab_ |
Definition at line 64 of file univariate.hpp.
Referenced by monomials< C >::begin(), monomials< C >::end(), monomials< C >::monomials(), monomials< C >::operator[](), monomials< C >::rbegin(), monomials< C >::rend(), and monomials< C >::~monomials().