Legendre polynomial basis using Clenshaw-Curtis quadrature points. More...
#include <Stokhos_ClenshawCurtisLegendreBasis.hpp>


Public Member Functions | |
| ClenshawCurtisLegendreBasis (ordinal_type p, bool normalize=false, bool isotropic=false) | |
| Constructor. | |
| ~ClenshawCurtisLegendreBasis () | |
| Destructor. | |
Implementation of Stokhos::OneDOrthogPolyBasis methods | |
| virtual Teuchos::RCP < OneDOrthogPolyBasis < ordinal_type, value_type > > | cloneWithOrder (ordinal_type p) const |
| Clone this object with the option of building a higher order basis. | |
Protected Member Functions | |
| ClenshawCurtisLegendreBasis (ordinal_type p, const ClenshawCurtisLegendreBasis &basis) | |
| Copy constructor with specified order. | |
Implementation of Stokhos::RecurrenceBasis methods | |
| virtual bool | computeRecurrenceCoefficients (ordinal_type n, Teuchos::Array< value_type > &alpha, Teuchos::Array< value_type > &beta, Teuchos::Array< value_type > &delta, Teuchos::Array< value_type > &gamma) const |
| Compute recurrence coefficients. | |
Protected Attributes | |
| bool | isotropic |
| Flag determining if expansion is iostropic (same basis in every dim) | |
Legendre polynomial basis using Clenshaw-Curtis quadrature points.
This is the same as Stokhos::LegendreBasis, but uses Clenshaw-Curtis quadrature points (instead of Gauss-Legendre) for sparse grids only.
| Stokhos::ClenshawCurtisLegendreBasis< ordinal_type, value_type >::ClenshawCurtisLegendreBasis | ( | ordinal_type | p, |
| bool | normalize = false, |
||
| bool | isotropic = false |
||
| ) |
Constructor.
| p | order of the basis |
| normalize | whether polynomials should be given unit norm |
| Teuchos::RCP< Stokhos::OneDOrthogPolyBasis< ordinal_type, value_type > > Stokhos::ClenshawCurtisLegendreBasis< ordinal_type, value_type >::cloneWithOrder | ( | ordinal_type | p | ) | const [virtual] |
Clone this object with the option of building a higher order basis.
This method is following the Prototype pattern (see Design Pattern's textbook). The slight variation is that it allows the order of the polynomial to be modified, otherwise an exact copy is formed. The use case for this is creating basis functions for column indices in a spatially varying adaptive refinement context.
Implements Stokhos::OneDOrthogPolyBasis< ordinal_type, value_type >.
1.7.6.1