#include <Sacado_PCE_Hermite.hpp>
Assignment operators | |
| Hermite< T > & | operator= (const T &val) |
| Assignment operator with constant right-hand-side. | |
| Hermite< T > & | operator= (const Hermite< T > &x) |
| Assignment with Hermite right-hand-side. | |
Value accessor methods | |
| const T & | val () const |
| Returns value. | |
| T & | val () |
| Returns value. | |
Hermite coefficient accessor methods | |
| unsigned int | degree () const |
| Returns degree of polynomial. | |
| bool | hasFastAccess (unsigned int d) const |
| Returns true if polynomial has degree >= d. | |
| const T * | coeff () const |
| Returns Hermite coefficient array. | |
| T * | coeff () |
| Returns Hermite coefficient array. | |
| T | coeff (unsigned int i) const |
Returns degree i term with bounds checking. | |
| T & | fastAccessCoeff (unsigned int i) |
Returns degree i term without bounds checking. | |
| T | fastAccessCoeff (unsigned int i) const |
Returns degree i term without bounds checking. | |
Unary operators | |
| Hermite< T > | operator+ () const |
| Unary-plus operator. | |
| Hermite< T > | operator- () const |
| Unary-minus operator. | |
| Hermite< T > & | operator+= (const T &x) |
| Addition-assignment operator with constant right-hand-side. | |
| Hermite< T > & | operator-= (const T &x) |
| Subtraction-assignment operator with constant right-hand-side. | |
| Hermite< T > & | operator *= (const T &x) |
| Multiplication-assignment operator with constant right-hand-side. | |
| Hermite< T > & | operator/= (const T &x) |
| Division-assignment operator with constant right-hand-side. | |
| Hermite< T > & | operator+= (const Hermite< T > &x) |
| Addition-assignment operator with Hermite right-hand-side. | |
| Hermite< T > & | operator-= (const Hermite< T > &x) |
| Subtraction-assignment operator with Hermite right-hand-side. | |
| Hermite< T > & | operator *= (const Hermite< T > &x) |
| Multiplication-assignment operator with Hermite right-hand-side. | |
| Hermite< T > & | operator/= (const Hermite< T > &x) |
| Division-assignment operator with Hermite right-hand-side. | |
Public Types | |
| typedef T | value_type |
| Typename of values. | |
| typedef Workspace< HermiteEBasis< T > > | ws_type |
| Workspace type. | |
Public Member Functions | |
| Hermite () | |
| Default constructor. | |
| Hermite (const T &x) | |
Constructor with supplied value x. | |
| Hermite (unsigned int d, const T &x) | |
Constructor with degree d and value x. | |
| Hermite (unsigned int d) | |
| Constructor with degree d. | |
| Hermite (const Hermite &x) | |
| Copy constructor. | |
| ~Hermite () | |
| Destructor. | |
| void | resize (unsigned int d, bool keep_coeffs) |
| Resize polynomial to degree d. | |
| void | reserve (unsigned int d) |
| Reserve space for a degree d polynomial. | |
| void | copyForWrite () |
| Prepare polynomial for writing. | |
| StandardPoly< T > | toStandardBasis () const |
| Write coefficients in standard basis. | |
Static Public Member Functions | |
| static void | initWorkspace (unsigned int d) |
| Initialize workspace. | |
Static Public Attributes | |
| static ws_type | workspace |
| Workspace. | |
Protected Member Functions | |
| unsigned int | length () const |
| Return length of array. | |
| void | resizeCoeffs (unsigned int len) |
| Resize coefficient array to new size. | |
Protected Attributes | |
| Sacado::Handle< HermiteData > | th |
Classes | |
| struct | HermiteData |
Uses a handle and a "copy-on-write" strategy for efficient copying, but no expression templating.
Definition at line 56 of file Sacado_PCE_Hermite.hpp.
| typedef T Sacado::PCE::Hermite< T >::value_type |
| typedef Workspace< HermiteEBasis<T> > Sacado::PCE::Hermite< T >::ws_type |
| Sacado::PCE::Hermite< T >::Hermite | ( | ) |
| Sacado::PCE::Hermite< T >::Hermite | ( | const T & | x | ) |
Constructor with supplied value x.
Sets the first coefficient to x
Definition at line 128 of file Sacado_PCE_HermiteImp.hpp.
| Sacado::PCE::Hermite< T >::Hermite | ( | unsigned int | d, | |
| const T & | x | |||
| ) |
Constructor with degree d and value x.
Initializes first coeffienct to x and of a polynomial of degree d
Definition at line 135 of file Sacado_PCE_HermiteImp.hpp.
| Sacado::PCE::Hermite< T >::Hermite | ( | unsigned int | d | ) |
Constructor with degree d.
Initializes all components to zero
Definition at line 142 of file Sacado_PCE_HermiteImp.hpp.
| Sacado::PCE::Hermite< T >::Hermite | ( | const Hermite< T > & | x | ) |
Copy constructor.
| Sacado::PCE::Hermite< T >::~Hermite | ( | ) |
| void Sacado::PCE::Hermite< T >::resize | ( | unsigned int | d, | |
| bool | keep_coeffs | |||
| ) |
Resize polynomial to degree d.
Coefficients are preserved if keep_coeffs is true, otherwise all coefficients are reset to zero.
Definition at line 163 of file Sacado_PCE_HermiteImp.hpp.
| void Sacado::PCE::Hermite< T >::reserve | ( | unsigned int | d | ) |
Reserve space for a degree d polynomial.
Coefficients are preserved.
Definition at line 182 of file Sacado_PCE_HermiteImp.hpp.
| void Sacado::PCE::Hermite< T >::copyForWrite | ( | ) | [inline] |
Prepare polynomial for writing.
This method prepares the polynomial for writing through coeff() and fastAccessCoeff() member functions. It ensures the handle for the Hermite coefficients is not shared among any other Hermite polynomial objects. If the handle is not shared it does nothing, so there is no cost in calling this method in this case. If the handle is shared and this method is not called, any changes to the coefficients by coeff() or fastAccessCoeff() may change other polynomial objects.
Definition at line 112 of file Sacado_PCE_Hermite.hpp.
| void Sacado::PCE::Hermite< T >::initWorkspace | ( | unsigned int | d | ) | [static] |
Initialize workspace.
Intializes static workspace data.
Definition at line 194 of file Sacado_PCE_HermiteImp.hpp.
| StandardPoly< T > Sacado::PCE::Hermite< T >::toStandardBasis | ( | ) | const |
| Hermite< T > & Sacado::PCE::Hermite< T >::operator= | ( | const T & | val | ) |
Assignment operator with constant right-hand-side.
Definition at line 214 of file Sacado_PCE_HermiteImp.hpp.
| Hermite< T > & Sacado::PCE::Hermite< T >::operator= | ( | const Hermite< T > & | x | ) |
| const T& Sacado::PCE::Hermite< T >::val | ( | ) | const [inline] |
| T& Sacado::PCE::Hermite< T >::val | ( | ) | [inline] |
| unsigned int Sacado::PCE::Hermite< T >::degree | ( | ) | const [inline] |
| bool Sacado::PCE::Hermite< T >::hasFastAccess | ( | unsigned int | d | ) | const [inline] |
| const T* Sacado::PCE::Hermite< T >::coeff | ( | ) | const [inline] |
| T* Sacado::PCE::Hermite< T >::coeff | ( | ) | [inline] |
| T Sacado::PCE::Hermite< T >::coeff | ( | unsigned int | i | ) | const [inline] |
| T& Sacado::PCE::Hermite< T >::fastAccessCoeff | ( | unsigned int | i | ) | [inline] |
Returns degree i term without bounds checking.
Definition at line 171 of file Sacado_PCE_Hermite.hpp.
| T Sacado::PCE::Hermite< T >::fastAccessCoeff | ( | unsigned int | i | ) | const [inline] |
Returns degree i term without bounds checking.
Definition at line 174 of file Sacado_PCE_Hermite.hpp.
| Hermite< T > Sacado::PCE::Hermite< T >::operator+ | ( | ) | const |
| Hermite< T > Sacado::PCE::Hermite< T >::operator- | ( | ) | const |
| Hermite< T > & Sacado::PCE::Hermite< T >::operator+= | ( | const T & | x | ) |
Addition-assignment operator with constant right-hand-side.
Definition at line 265 of file Sacado_PCE_HermiteImp.hpp.
| Hermite< T > & Sacado::PCE::Hermite< T >::operator-= | ( | const T & | x | ) |
Subtraction-assignment operator with constant right-hand-side.
Definition at line 277 of file Sacado_PCE_HermiteImp.hpp.
| Hermite< T > & Sacado::PCE::Hermite< T >::operator *= | ( | const T & | x | ) |
Multiplication-assignment operator with constant right-hand-side.
Definition at line 289 of file Sacado_PCE_HermiteImp.hpp.
| Hermite< T > & Sacado::PCE::Hermite< T >::operator/= | ( | const T & | x | ) |
Division-assignment operator with constant right-hand-side.
Definition at line 302 of file Sacado_PCE_HermiteImp.hpp.
| Hermite< T > & Sacado::PCE::Hermite< T >::operator+= | ( | const Hermite< T > & | x | ) |
Addition-assignment operator with Hermite right-hand-side.
Definition at line 315 of file Sacado_PCE_HermiteImp.hpp.
| Hermite< T > & Sacado::PCE::Hermite< T >::operator-= | ( | const Hermite< T > & | x | ) |
Subtraction-assignment operator with Hermite right-hand-side.
Definition at line 355 of file Sacado_PCE_HermiteImp.hpp.
| Hermite< T > & Sacado::PCE::Hermite< T >::operator *= | ( | const Hermite< T > & | x | ) |
Multiplication-assignment operator with Hermite right-hand-side.
Definition at line 395 of file Sacado_PCE_HermiteImp.hpp.
| Hermite< T > & Sacado::PCE::Hermite< T >::operator/= | ( | const Hermite< T > & | x | ) |
Division-assignment operator with Hermite right-hand-side.
Definition at line 459 of file Sacado_PCE_HermiteImp.hpp.
| unsigned int Sacado::PCE::Hermite< T >::length | ( | ) | const [inline, protected] |
| void Sacado::PCE::Hermite< T >::resizeCoeffs | ( | unsigned int | len | ) | [protected] |
Sacado::Handle<HermiteData> Sacado::PCE::Hermite< T >::th [protected] |
Definition at line 262 of file Sacado_PCE_Hermite.hpp.
Hermite< T >::ws_type Sacado::PCE::Hermite< T >::workspace [static] |
1.4.7