#include <Sacado_PCE_StandardPoly.hpp>
Public Member Functions | |
| StandardPoly (unsigned int deg) | |
| Constructor with all zero coefficients. | |
| StandardPoly (const std::vector< T > &coefficients) | |
| Constructor with specified coefficients. | |
| StandardPoly (const StandardPoly &p) | |
| Copy constructor. | |
| ~StandardPoly () | |
| Destructor. | |
| StandardPoly & | operator= (const StandardPoly &p) |
| Assignment. | |
| unsigned int | degree () const |
| Return degree. | |
| const T & | coeff (unsigned int i) const |
| Get coefficient. | |
| T & | coeff (unsigned int i) |
| Get coefficient. | |
| const T & | operator[] (unsigned int i) const |
| Get coefficient. | |
| T & | operator[] (unsigned int i) |
| Get coefficient. | |
| void | multiply (const T &alpha, const StandardPoly< T > &a, const StandardPoly< T > &b, const T &beta) |
| Multiply two polynomials and put into this. | |
| void | add (const T &alpha, const StandardPoly< T > &a, const T &gamma) |
| Add two polynomials and put into this. | |
| void | add (const T &alpha, const StandardPoly< T > &a, const T &beta, const StandardPoly< T > &b, const T &gamma) |
| Add two polynomials and put into this. | |
| void | print (std::ostream &os) const |
Protected Attributes | |
| std::vector< T > | coeffs |
| Vector of coefficients. | |
Definition at line 43 of file Sacado_PCE_StandardPoly.hpp.
| Sacado::PCE::StandardPoly< T >::StandardPoly | ( | unsigned int | deg | ) |
Constructor with all zero coefficients.
Definition at line 34 of file Sacado_PCE_StandardPolyImp.hpp.
| Sacado::PCE::StandardPoly< T >::StandardPoly | ( | const std::vector< T > & | coefficients | ) |
Constructor with specified coefficients.
Definition at line 41 of file Sacado_PCE_StandardPolyImp.hpp.
| Sacado::PCE::StandardPoly< T >::StandardPoly | ( | const StandardPoly< T > & | p | ) |
Copy constructor.
| Sacado::PCE::StandardPoly< T >::~StandardPoly | ( | ) |
| StandardPoly& Sacado::PCE::StandardPoly< T >::operator= | ( | const StandardPoly< T > & | p | ) |
Assignment.
| unsigned int Sacado::PCE::StandardPoly< T >::degree | ( | ) | const |
| const T & Sacado::PCE::StandardPoly< T >::coeff | ( | unsigned int | i | ) | const |
| T & Sacado::PCE::StandardPoly< T >::coeff | ( | unsigned int | i | ) |
| const T & Sacado::PCE::StandardPoly< T >::operator[] | ( | unsigned int | i | ) | const |
| T & Sacado::PCE::StandardPoly< T >::operator[] | ( | unsigned int | i | ) |
| void Sacado::PCE::StandardPoly< T >::multiply | ( | const T & | alpha, | |
| const StandardPoly< T > & | a, | |||
| const StandardPoly< T > & | b, | |||
| const T & | beta | |||
| ) |
Multiply two polynomials and put into this.
Sets this = alpha*a*b + beta*this
Definition at line 112 of file Sacado_PCE_StandardPolyImp.hpp.
| void Sacado::PCE::StandardPoly< T >::add | ( | const T & | alpha, | |
| const StandardPoly< T > & | a, | |||
| const T & | gamma | |||
| ) |
Add two polynomials and put into this.
Sets this = alpha*a* + gamma*this;
Definition at line 204 of file Sacado_PCE_StandardPolyImp.hpp.
| void Sacado::PCE::StandardPoly< T >::add | ( | const T & | alpha, | |
| const StandardPoly< T > & | a, | |||
| const T & | beta, | |||
| const StandardPoly< T > & | b, | |||
| const T & | gamma | |||
| ) |
Add two polynomials and put into this.
Sets this = alpha*a* + beta*b + gamma*this;
Definition at line 225 of file Sacado_PCE_StandardPolyImp.hpp.
| void Sacado::PCE::StandardPoly< T >::print | ( | std::ostream & | os | ) | const |
Definition at line 269 of file Sacado_PCE_StandardPolyImp.hpp.
std::vector<T> Sacado::PCE::StandardPoly< T >::coeffs [protected] |
1.4.7