realroot_doc 0.1.1
|
#include <tensor_bernstein.hpp>
Definition at line 13 of file tensor_bernstein.hpp.
Definition at line 15 of file tensor_bernstein.hpp.
typedef C coeff_t [inherited] |
Definition at line 20 of file tensor_monomials.hpp.
Reimplemented from monomials< C >.
Definition at line 19 of file tensor_bernstein.hpp.
typedef std::reverse_iterator<const_iterator> const_reverse_iterator [inherited] |
Definition at line 27 of file tensor_monomials.hpp.
typedef base_type::iterator iterator |
Reimplemented from monomials< C >.
Definition at line 18 of file tensor_bernstein.hpp.
typedef std::reverse_iterator<iterator> reverse_iterator [inherited] |
Definition at line 26 of file tensor_monomials.hpp.
typedef base_type::size_type size_type |
Reimplemented from monomials< C >.
Definition at line 20 of file tensor_bernstein.hpp.
typedef base_type::value_type value_type |
Reimplemented from monomials< C >.
Definition at line 16 of file tensor_bernstein.hpp.
typedef base_type::vector_type vector_type |
Reimplemented from monomials< C >.
Definition at line 17 of file tensor_bernstein.hpp.
bernstein | ( | const C & | x = 0 | ) |
Definition at line 192 of file tensor_bernstein_fcts.hpp.
: base_type(x) {}
bernstein | ( | int | v, |
int | d | ||
) | [inline] |
Definition at line 23 of file tensor_bernstein.hpp.
References mmx::tensor::convertm2b().
: base_type(v,d) { convertm2b(*this); }
bernstein | ( | const C & | c, |
int | v, | ||
int | d | ||
) | [inline] |
Definition at line 26 of file tensor_bernstein.hpp.
References mmx::tensor::convertm2b().
: base_type(c,v,d) { convertm2b(*this); }
Definition at line 29 of file tensor_bernstein.hpp.
: base_type(p) { // std::cout<<"\tcopy"<<std::endl; }
bernstein | ( | const sparse::monomial_seq< X, O > & | pol | ) | [inline] |
Definition at line 34 of file tensor_bernstein.hpp.
References mmx::tensor::convertm2b().
:base_type(pol) { convertm2b(*this); }
bernstein | ( | const char * | str | ) | [inline] |
Definition at line 38 of file tensor_bernstein.hpp.
References mmx::tensor::convertm2b().
:base_type(str) { convertm2b(*this); }
bernstein | ( | const char * | str, |
const VECT & | bx | ||
) | [inline] |
Definition at line 43 of file tensor_bernstein.hpp.
References mmx::tensor::convertm2b().
:base_type(str) { convertm2b(*this, bx); }
bernstein | ( | const sparse::monomial_seq< C, O > & | pol, |
const VECT & | bx | ||
) | [inline] |
Definition at line 48 of file tensor_bernstein.hpp.
References mmx::tensor::convertm2b().
:base_type(pol) { convertm2b(*this, bx); }
bernstein | ( | const sparse::monomial_seq< X, O > & | mpol, |
const VECT & | bx | ||
) | [inline] |
Definition at line 54 of file tensor_bernstein.hpp.
References mmx::tensor::convertm2b().
:base_type(mpol) { convertm2b(*this, bx); }
Definition at line 182 of file tensor_bernstein_fcts.hpp.
: base_type(e) {};
Definition at line 184 of file tensor_bernstein_fcts.hpp.
: base_type(e,c){};
bernstein | ( | int | nvr, |
const int * | szs, | ||
const int * | vrs = 0 |
||
) |
C* begin | ( | ) | [inline, inherited] |
Definition at line 47 of file tensor_monomials.hpp.
References monomials< C >::data.
Referenced by mmx::tensor::add(), solver< C, ProjRd< MTH > >::add_equation(), mmx::tensor::binoms(), mmx::tensor::casteljau(), mmx::tensor::cfdump(), mmx::tensor::clear(), mmx::tensor::convertb2m(), mmx::tensor::convertm2b(), mmx::tensor::diff(), mmx::tensor::div(), mmx::tensor::eval(), mmx::tensor::extend(), mmx::tensor::heval(), mmx::tensor::islice(), mmx::tensor::lface(), mmx::tensor::mul(), mmx::tensor::restrict(), mmx::tensor::rface(), mmx::tensor::scale(), mmx::tensor::split(), mmx::tensor::sub(), mmx::tensor::subs0(), mmx::tensor::uscale(), mmx::tensor::waddm(), and mmx::tensor::wsubm().
{ return &(data[0]); };
const_iterator begin | ( | ) | const [inline, inherited] |
Definition at line 50 of file tensor_monomials.hpp.
References monomials< C >::data.
{ return &(data[0]); };
C* end | ( | ) | [inline, inherited] |
Definition at line 48 of file tensor_monomials.hpp.
References monomials< C >::data, and monomials< C >::esz().
Referenced by mmx::tensor::cfdump(), mmx::tensor::clear(), and mmx::tensor::eval().
const_iterator end | ( | ) | const [inline, inherited] |
Definition at line 51 of file tensor_monomials.hpp.
References monomials< C >::data, and monomials< C >::esz().
const C entry | ( | std::vector< int > | deg | ) | [inline, inherited] |
Definition at line 480 of file tensor_monomials_fcts.hpp.
int esz | ( | ) | const [inline, inherited] |
Definition at line 71 of file tensor_monomials.hpp.
References monomials< C >::env, and eenv::sz().
Referenced by mmx::tensor::add(), mmx::tensor::div(), monomials< C >::end(), mmx::tensor::extend(), mmx::tensor::mul(), monomials< C >::operator==(), bernstein< C >::operator==(), monomials< C >::rbegin(), mmx::tensor::sub(), mmx::tensor::waddm(), and mmx::tensor::wsubm().
{ return env.sz(); };
bool hasvar | ( | int & | lv, |
int | gv | ||
) | const [inherited] |
int nbvar | ( | ) | const [inline, inherited] |
Definition at line 73 of file tensor_monomials.hpp.
References monomials< C >::env, and eenv::nvr().
Referenced by mmx::tensor::degree().
{ return env.nvr(); };
int nvr | ( | ) | const [inline, inherited] |
Definition at line 74 of file tensor_monomials.hpp.
References monomials< C >::env, and eenv::nvr().
Referenced by mmx::tensor::contraction(), mmx::tensor::convert(), mmx::tensor::print(), mmx::tensor::print_flatten(), mmx::tensor::reciprocal(), mmx::tensor::rename_var(), mmx::tensor::set_variable(), and mmx::tensor::shift().
{ return env.nvr(); };
bernstein< C > & operator= | ( | const C & | x | ) |
Definition at line 322 of file tensor_bernstein_fcts.hpp.
{ this->~bernstein<C>(); new (this) bernstein<C>(x); return *this; };
bool operator== | ( | const C & | c | ) | const [inline] |
Reimplemented from monomials< C >.
Definition at line 65 of file tensor_bernstein.hpp.
References monomials< C >::data, and monomials< C >::esz().
{ return base_type::esz() == 1 && base_type::data[0] == c; };
bool operator== | ( | const bernstein< C > & | mp | ) | const |
Definition at line 309 of file tensor_bernstein_fcts.hpp.
References mmx::operator==().
{ return base_type::operator==(mpl); };
bool operator== | ( | const monomials< C > & | mpl | ) | const [inherited] |
Definition at line 105 of file tensor_monomials_fcts.hpp.
References eenv::equal(), and eenv::oaddress().
{ if (!eenv::equal (env, mpl.env)) return false; unsigned *oadd = new unsigned[esz ()]; eenv::oaddress (env, oadd, mpl.env, 0, 0); for (int i = 0; i < esz (); i++) if (data[i] != mpl[oadd[i]]) { delete[]oadd; return false; }; delete[]oadd; return true; };
C& operator[] | ( | int | i | ) | [inline] |
Reimplemented from monomials< C >.
Definition at line 63 of file tensor_bernstein.hpp.
References monomials< C >::data.
{ return this->data[i]; };
C operator[] | ( | int | i | ) | const [inline] |
Reimplemented from monomials< C >.
Definition at line 64 of file tensor_bernstein.hpp.
References monomials< C >::data.
{ return this->data[i]; };
reverse_iterator rbegin | ( | ) | [inline, inherited] |
Definition at line 54 of file tensor_monomials.hpp.
References monomials< C >::data, and monomials< C >::esz().
{ return reverse_iterator(&(data[0])+esz()); }
const_reverse_iterator rbegin | ( | ) | const [inline, inherited] |
Definition at line 58 of file tensor_monomials.hpp.
References monomials< C >::data, and monomials< C >::esz().
{ return const_reverse_iterator(&(data[0])+esz()); }
const_reverse_iterator rend | ( | ) | const [inline, inherited] |
Definition at line 66 of file tensor_monomials.hpp.
References monomials< C >::data.
{ return const_reverse_iterator(&(data[0])); }
reverse_iterator rend | ( | ) | [inline, inherited] |
Definition at line 62 of file tensor_monomials.hpp.
References monomials< C >::data.
{ return reverse_iterator(&(data[0])); }
void resize | ( | int | l | ) | [inline, inherited] |
Definition at line 46 of file tensor_monomials.hpp.
{};
int size | ( | void | ) | const [inline, inherited] |
Definition at line 72 of file tensor_monomials.hpp.
References monomials< C >::env, and eenv::sz().
Referenced by mmx::let::assign(), mmx::tensor::convert(), mmx::tensor::eval(), mmx::tensor::maxs(), mmx::tensor::mins(), mmx::tensor::print(), mmx::tensor::print_flatten(), and mmx::tensor::size().
{ return env.sz(); };
int* str | ( | ) | [inline, inherited] |
Definition at line 77 of file tensor_monomials.hpp.
References monomials< C >::env, and eenv::str().
Referenced by mmx::tensor::contraction(), mmx::tensor::maxs(), mmx::tensor::mins(), mmx::tensor::reciprocal(), mmx::tensor::set_variable(), and mmx::tensor::shift().
{ return env.str(); };
const int* str | ( | ) | const [inline, inherited] |
Definition at line 80 of file tensor_monomials.hpp.
References monomials< C >::env, and eenv::str().
{ return env.str(); };
void swap | ( | monomials< C > & | a | ) | [inline, inherited] |
Definition at line 88 of file tensor_monomials.hpp.
References monomials< C >::data, and monomials< C >::env.
Referenced by mmx::tensor::clear(), mmx::tensor::extend(), mmx::tensor::mul(), and mmx::tensor::realloc().
int* szs | ( | ) | [inline, inherited] |
Definition at line 75 of file tensor_monomials.hpp.
References monomials< C >::env, and eenv::szs().
Referenced by mmx::tensor::contraction(), mmx::tensor::convert(), mmx::tensor::maxs(), mmx::tensor::mins(), mmx::tensor::print(), mmx::tensor::print_flatten(), mmx::tensor::reciprocal(), mmx::tensor::set_variable(), and mmx::tensor::shift().
{ return env.szs(); };
const int* szs | ( | ) | const [inline, inherited] |
Definition at line 78 of file tensor_monomials.hpp.
References monomials< C >::env, and eenv::szs().
{ return env.szs(); };
const int* vrs | ( | ) | const [inline, inherited] |
Definition at line 79 of file tensor_monomials.hpp.
References monomials< C >::env, and eenv::vrs().
{ return env.vrs(); };
int* vrs | ( | ) | [inline, inherited] |
Definition at line 76 of file tensor_monomials.hpp.
References monomials< C >::env, and eenv::vrs().
Referenced by mmx::tensor::contraction(), mmx::tensor::convert(), mmx::tensor::print(), mmx::tensor::print_flatten(), mmx::tensor::reciprocal(), mmx::tensor::rename_var(), mmx::tensor::set_variable(), and mmx::tensor::shift().
{ return env.vrs(); };
Definition at line 30 of file tensor_monomials.hpp.
vector_type data [inherited] |
Definition at line 32 of file tensor_monomials.hpp.
Referenced by mmx::let::assign(), monomials< C >::begin(), mmx::tensor::contraction(), monomials< C >::end(), mmx::tensor::maxs(), mmx::tensor::mins(), monomials< C >::operator==(), bernstein< C >::operator==(), monomials< C >::operator[](), bernstein< C >::operator[](), monomials< C >::rbegin(), mmx::tensor::reciprocal(), monomials< C >::rend(), mmx::tensor::set_variable(), mmx::tensor::shift(), and monomials< C >::swap().
Definition at line 31 of file tensor_monomials.hpp.
Referenced by mmx::tensor::add(), mmx::let::assign(), mmx::tensor::binoms(), mmx::tensor::casteljau(), mmx::tensor::clear(), mmx::tensor::convert(), mmx::tensor::convertb2m(), mmx::tensor::convertm2b(), mmx::tensor::degree(), mmx::tensor::diff(), monomials< C >::esz(), mmx::tensor::eval(), mmx::tensor::extend(), mmx::tensor::face(), mmx::tensor::heval(), mmx::tensor::islice(), mmx::tensor::lface(), monomials< C >::nbvar(), monomials< C >::nvr(), mmx::tensor::print(), mmx::tensor::print_flatten(), mmx::tensor::realloc(), mmx::tensor::restrict(), mmx::tensor::rewrite(), mmx::tensor::rface(), mmx::tensor::scale(), monomials< C >::size(), mmx::tensor::slice(), mmx::tensor::split(), monomials< C >::str(), mmx::tensor::sub(), mmx::tensor::subs0(), monomials< C >::swap(), monomials< C >::szs(), mmx::tensor::uscale(), mmx::tensor::varindex(), monomials< C >::vrs(), mmx::tensor::waddm(), and mmx::tensor::wsubm().