Stokhos Development
Public Member Functions | Protected Member Functions | Protected Attributes
Stokhos::ClenshawCurtisLegendreBasis< ordinal_type, value_type > Class Template Reference

Legendre polynomial basis using Clenshaw-Curtis quadrature points. More...

#include <Stokhos_ClenshawCurtisLegendreBasis.hpp>

Inheritance diagram for Stokhos::ClenshawCurtisLegendreBasis< ordinal_type, value_type >:
Inheritance graph
[legend]
Collaboration diagram for Stokhos::ClenshawCurtisLegendreBasis< ordinal_type, value_type >:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

template<typename ordinal_type, typename value_type>
class Stokhos::ClenshawCurtisLegendreBasis< ordinal_type, value_type >

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.


Constructor & Destructor Documentation

template<typename ordinal_type , typename value_type >
Stokhos::ClenshawCurtisLegendreBasis< ordinal_type, value_type >::ClenshawCurtisLegendreBasis ( ordinal_type  p,
bool  normalize = false,
bool  isotropic = false 
)

Constructor.

Parameters:
porder of the basis
normalizewhether polynomials should be given unit norm

Member Function Documentation

template<typename ordinal_type , typename value_type >
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 >.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator