Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type > Class Template Reference

Defines quadrature for a tensor product basis by Smolyak sparse grids. More...

#include <Stokhos_SmolyakSparseGridQuadrature.hpp>

Inheritance diagram for Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >:
Inheritance graph
[legend]

Public Member Functions

template<typename index_set_type >
 SmolyakSparseGridQuadrature (const Teuchos::RCP< const ProductBasis< ordinal_type, value_type > > &product_basis, const index_set_type &index_set, const value_type duplicate_tol=1.0e-12, const point_compare_type &point_compare=point_compare_type())
 Constructor. More...
 
virtual ~SmolyakSparseGridQuadrature ()
 Destructor. More...
 
virtual ordinal_type size () const
 Get number of quadrature points. More...
 
virtual const Teuchos::Array
< Teuchos::Array< value_type > > & 
getQuadPoints () const
 Get quadrature points. More...
 
virtual const Teuchos::Array
< value_type > & 
getQuadWeights () const
 Get quadrature weights. More...
 
virtual const Teuchos::Array
< Teuchos::Array< value_type > > & 
getBasisAtQuadPoints () const
 Get values of basis at quadrature points. More...
 
virtual std::ostream & print (std::ostream &os) const
 Print quadrature data. More...
 
- Public Member Functions inherited from Stokhos::Quadrature< ordinal_type, value_type >
 Quadrature ()
 Constructor. More...
 
virtual ~Quadrature ()
 Destructor. More...
 

Protected Attributes

Teuchos::Array< Teuchos::Array
< value_type > > 
quad_points
 Quadrature points. More...
 
Teuchos::Array< value_type > quad_weights
 Quadrature weights. More...
 
Teuchos::Array< Teuchos::Array
< value_type > > 
quad_values
 Quadrature values. More...
 

Private Member Functions

 SmolyakSparseGridQuadrature (const SmolyakSparseGridQuadrature &)
 
SmolyakSparseGridQuadratureoperator= (const SmolyakSparseGridQuadrature &b)
 

Detailed Description

template<typename ordinal_type, typename value_type, typename point_compare_type = typename DefaultPointCompare<ordinal_type,value_type>::type>
class Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >

Defines quadrature for a tensor product basis by Smolyak sparse grids.

This class generates the sparse grids using the SmolyakPseudoSpectralOperator and doesn't rely on Dakota.

Definition at line 31 of file Stokhos_SmolyakSparseGridQuadrature.hpp.

Constructor & Destructor Documentation

template<typename ordinal_type , typename value_type , typename point_compare_type >
template<typename index_set_type >
Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::SmolyakSparseGridQuadrature ( const Teuchos::RCP< const ProductBasis< ordinal_type, value_type > > &  product_basis,
const index_set_type &  index_set,
const value_type  duplicate_tol = 1.0e-12,
const point_compare_type &  point_compare = point_compare_type() 
)

Constructor.

Parameters
product_basisproduct basis
index_setindex set defining growth levels
point_comparecomparison functor used in ordering points

Definition at line 15 of file Stokhos_SmolyakSparseGridQuadratureImp.hpp.

template<typename ordinal_type, typename value_type, typename point_compare_type = typename DefaultPointCompare<ordinal_type,value_type>::type>
virtual Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::~SmolyakSparseGridQuadrature ( )
inlinevirtual

Destructor.

Definition at line 49 of file Stokhos_SmolyakSparseGridQuadrature.hpp.

template<typename ordinal_type, typename value_type, typename point_compare_type = typename DefaultPointCompare<ordinal_type,value_type>::type>
Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::SmolyakSparseGridQuadrature ( const SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type > &  )
private

Member Function Documentation

template<typename ordinal_type, typename value_type, typename point_compare_type = typename DefaultPointCompare<ordinal_type,value_type>::type>
virtual ordinal_type Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::size ( ) const
inlinevirtual

Get number of quadrature points.

Implements Stokhos::Quadrature< ordinal_type, value_type >.

Definition at line 52 of file Stokhos_SmolyakSparseGridQuadrature.hpp.

template<typename ordinal_type , typename value_type , typename point_compare_type >
const Teuchos::Array< Teuchos::Array< value_type > > & Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::getQuadPoints ( ) const
virtual

Get quadrature points.

Array is dimensioned Q-by-d where Q is the number of quadrature points and d is the dimension of the basis.

Implements Stokhos::Quadrature< ordinal_type, value_type >.

Definition at line 53 of file Stokhos_SmolyakSparseGridQuadratureImp.hpp.

template<typename ordinal_type , typename value_type , typename point_compare_type >
const Teuchos::Array< value_type > & Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::getQuadWeights ( ) const
virtual

Get quadrature weights.

Array is of size Q where Q is the number of quadrature points.

Implements Stokhos::Quadrature< ordinal_type, value_type >.

Definition at line 61 of file Stokhos_SmolyakSparseGridQuadratureImp.hpp.

template<typename ordinal_type , typename value_type , typename point_compare_type >
const Teuchos::Array< Teuchos::Array< value_type > > & Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::getBasisAtQuadPoints ( ) const
virtual

Get values of basis at quadrature points.

Array is dimensioned Q-by-P where Q is the number of quadrature points and P is the size of the basis.

Implements Stokhos::Quadrature< ordinal_type, value_type >.

Definition at line 69 of file Stokhos_SmolyakSparseGridQuadratureImp.hpp.

template<typename ordinal_type , typename value_type , typename point_compare_type >
std::ostream & Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::print ( std::ostream &  os) const
virtual

Print quadrature data.

Implements Stokhos::Quadrature< ordinal_type, value_type >.

Definition at line 77 of file Stokhos_SmolyakSparseGridQuadratureImp.hpp.

template<typename ordinal_type, typename value_type, typename point_compare_type = typename DefaultPointCompare<ordinal_type,value_type>::type>
SmolyakSparseGridQuadrature& Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::operator= ( const SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type > &  b)
private

Member Data Documentation

template<typename ordinal_type, typename value_type, typename point_compare_type = typename DefaultPointCompare<ordinal_type,value_type>::type>
Teuchos::Array< Teuchos::Array<value_type> > Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::quad_points
protected

Quadrature points.

Definition at line 91 of file Stokhos_SmolyakSparseGridQuadrature.hpp.

template<typename ordinal_type, typename value_type, typename point_compare_type = typename DefaultPointCompare<ordinal_type,value_type>::type>
Teuchos::Array<value_type> Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::quad_weights
protected

Quadrature weights.

Definition at line 94 of file Stokhos_SmolyakSparseGridQuadrature.hpp.

template<typename ordinal_type, typename value_type, typename point_compare_type = typename DefaultPointCompare<ordinal_type,value_type>::type>
Teuchos::Array< Teuchos::Array<value_type> > Stokhos::SmolyakSparseGridQuadrature< ordinal_type, value_type, point_compare_type >::quad_values
protected

Quadrature values.

Definition at line 97 of file Stokhos_SmolyakSparseGridQuadrature.hpp.


The documentation for this class was generated from the following files: