|
Stokhos Development
|
Legendre polynomial basis. More...
#include <Stokhos_LegendreBasis.hpp>


Public Member Functions | |
| LegendreBasis (ordinal_type p, bool normalize=false) | |
| Constructor. | |
| ~LegendreBasis () | |
| Destructor. | |
Implementation of Stokhos::OneDOrthogPolyBasis methods | |
| virtual int | getSparseGridRule () const |
Get sparse grid rule number as defined by Dakota's webbur package. | |
Protected Member Functions | |
Implementation of Stokhos::RecurrenceBasis methods | |
| virtual void | computeRecurrenceCoefficients (ordinal_type n, Teuchos::Array< value_type > &alpha, Teuchos::Array< value_type > &beta, Teuchos::Array< value_type > &delta) const |
| Compute recurrence coefficients. | |
Legendre polynomial basis.
Legendre polynomials are defined by the recurrence relationship
with
and
. The corresponding density function is
This class implements computeRecurrenceCoefficients() using the above formula.
| Stokhos::LegendreBasis< ordinal_type, value_type >::LegendreBasis | ( | ordinal_type | p, |
| bool | normalize = false |
||
| ) |
Constructor.
| p | order of the basis |
| normalize | whether polynomials should be given unit norm |
| virtual int Stokhos::LegendreBasis< ordinal_type, value_type >::getSparseGridRule | ( | ) | const [inline, virtual] |
Get sparse grid rule number as defined by Dakota's webbur package.
This method is needed for building Smolyak sparse grids out of this basis.
Reimplemented from Stokhos::RecurrenceBasis< ordinal_type, value_type >.
1.7.4