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::TensorProductQuadrature< ordinal_type, value_type > Class Template Reference

Defines quadrature for a tensor product basis by tensor products of 1-D quadrature rules. More...

#include <Stokhos_TensorProductQuadrature.hpp>

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

Public Member Functions

 TensorProductQuadrature (const Teuchos::RCP< const ProductBasis< ordinal_type, value_type > > &product_basis)
 Constructor. More...
 
 TensorProductQuadrature (const Teuchos::RCP< const ProductBasis< ordinal_type, value_type > > &product_basis, const ordinal_type &quad_order)
 Variable order constructor. More...
 
virtual ~TensorProductQuadrature ()
 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

 TensorProductQuadrature (const TensorProductQuadrature &)
 
TensorProductQuadratureoperator= (const TensorProductQuadrature &b)
 

Detailed Description

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

Defines quadrature for a tensor product basis by tensor products of 1-D quadrature rules.

Definition at line 24 of file Stokhos_TensorProductQuadrature.hpp.

Constructor & Destructor Documentation

template<typename ordinal_type , typename value_type >
Stokhos::TensorProductQuadrature< ordinal_type, value_type >::TensorProductQuadrature ( const Teuchos::RCP< const ProductBasis< ordinal_type, value_type > > &  product_basis)

Constructor.

Parameters
product_basisproduct basis The order of the quadrature is $2*p$, where $p$ is the order of the basis.

Definition at line 14 of file Stokhos_TensorProductQuadratureImp.hpp.

template<typename ordinal_type , typename value_type >
Stokhos::TensorProductQuadrature< ordinal_type, value_type >::TensorProductQuadrature ( const Teuchos::RCP< const ProductBasis< ordinal_type, value_type > > &  product_basis,
const ordinal_type &  quad_order 
)

Variable order constructor.

Parameters
product_basisproduct basis
quad_orderorder of quadrature to use

Definition at line 72 of file Stokhos_TensorProductQuadratureImp.hpp.

template<typename ordinal_type, typename value_type>
virtual Stokhos::TensorProductQuadrature< ordinal_type, value_type >::~TensorProductQuadrature ( )
inlinevirtual

Destructor.

Definition at line 43 of file Stokhos_TensorProductQuadrature.hpp.

template<typename ordinal_type, typename value_type>
Stokhos::TensorProductQuadrature< ordinal_type, value_type >::TensorProductQuadrature ( const TensorProductQuadrature< ordinal_type, value_type > &  )
private

Member Function Documentation

template<typename ordinal_type, typename value_type>
virtual ordinal_type Stokhos::TensorProductQuadrature< ordinal_type, value_type >::size ( ) const
inlinevirtual

Get number of quadrature points.

Implements Stokhos::Quadrature< ordinal_type, value_type >.

Definition at line 46 of file Stokhos_TensorProductQuadrature.hpp.

template<typename ordinal_type , typename value_type >
const Teuchos::Array< Teuchos::Array< value_type > > & Stokhos::TensorProductQuadrature< ordinal_type, value_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 131 of file Stokhos_TensorProductQuadratureImp.hpp.

template<typename ordinal_type , typename value_type >
const Teuchos::Array< value_type > & Stokhos::TensorProductQuadrature< ordinal_type, value_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 139 of file Stokhos_TensorProductQuadratureImp.hpp.

template<typename ordinal_type , typename value_type >
const Teuchos::Array< Teuchos::Array< value_type > > & Stokhos::TensorProductQuadrature< ordinal_type, value_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 147 of file Stokhos_TensorProductQuadratureImp.hpp.

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

Print quadrature data.

Implements Stokhos::Quadrature< ordinal_type, value_type >.

Definition at line 155 of file Stokhos_TensorProductQuadratureImp.hpp.

template<typename ordinal_type, typename value_type>
TensorProductQuadrature& Stokhos::TensorProductQuadrature< ordinal_type, value_type >::operator= ( const TensorProductQuadrature< ordinal_type, value_type > &  b)
private

Member Data Documentation

template<typename ordinal_type, typename value_type>
Teuchos::Array< Teuchos::Array<value_type> > Stokhos::TensorProductQuadrature< ordinal_type, value_type >::quad_points
protected

Quadrature points.

Definition at line 85 of file Stokhos_TensorProductQuadrature.hpp.

template<typename ordinal_type, typename value_type>
Teuchos::Array<value_type> Stokhos::TensorProductQuadrature< ordinal_type, value_type >::quad_weights
protected

Quadrature weights.

Definition at line 88 of file Stokhos_TensorProductQuadrature.hpp.

template<typename ordinal_type, typename value_type>
Teuchos::Array< Teuchos::Array<value_type> > Stokhos::TensorProductQuadrature< ordinal_type, value_type >::quad_values
protected

Quadrature values.

Definition at line 91 of file Stokhos_TensorProductQuadrature.hpp.


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