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 void getQuadPoints (ordinal_type quad_order, Teuchos::Array< value_type > &points, Teuchos::Array< value_type > &weights, Teuchos::Array< Teuchos::Array< value_type > > &values) const
 Compute quadrature points, weights, and values of basis polynomials at given set of points points.
virtual ordinal_type quadDegreeOfExactness (ordinal_type n) const
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.
virtual ordinal_type coefficientGrowth (ordinal_type n) const
 Evaluate coefficient growth rule for Smolyak-type bases.
virtual ordinal_type pointGrowth (ordinal_type n) const
 Evaluate point growth rule for Smolyak-type bases.

Protected Member Functions

 ClenshawCurtisLegendreBasis (ordinal_type p, const ClenshawCurtisLegendreBasis &basis)
 Copy constructor with specified order.

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).


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.

Reimplemented from Stokhos::LegendreBasis< ordinal_type, value_type >.

template<typename ordinal_type , typename value_type >
void Stokhos::ClenshawCurtisLegendreBasis< ordinal_type, value_type >::getQuadPoints ( ordinal_type  quad_order,
Teuchos::Array< value_type > &  points,
Teuchos::Array< value_type > &  weights,
Teuchos::Array< Teuchos::Array< value_type > > &  values 
) const [virtual]

Compute quadrature points, weights, and values of basis polynomials at given set of points points.

quad_order specifies the order to which the quadrature should be accurate, not the number of quadrature points which for Clenshaw-Curtis points is equal to the number of points

Reimplemented from Stokhos::RecurrenceBasis< ordinal_type, value_type >.

template<typename ordinal_type , typename value_type >
ordinal_type Stokhos::ClenshawCurtisLegendreBasis< ordinal_type, value_type >::quadDegreeOfExactness ( ordinal_type  n) const [virtual]

Return polynomial degree of exactness for a given number of quadrature points.

Reimplemented from Stokhos::RecurrenceBasis< ordinal_type, value_type >.


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