Stokhos Development
Public Types | Public Member Functions | Protected Attributes
Stokhos::QuadraturePseudoSpectralOperator< ordinal_t, value_t, point_compare_type > Class Template Reference

An operator for building pseudo-spectral coefficients using an arbitrary quadrature rule. More...

#include <Stokhos_QuadraturePseudoSpectralOperator.hpp>

Inheritance diagram for Stokhos::QuadraturePseudoSpectralOperator< ordinal_t, value_t, point_compare_type >:
Inheritance graph
[legend]
Collaboration diagram for Stokhos::QuadraturePseudoSpectralOperator< ordinal_t, value_t, point_compare_type >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef ordinal_t ordinal_type
typedef value_t value_type
typedef PseudoSpectralOperator
< ordinal_type, value_type,
point_compare_type > 
base_type
typedef base_type::point_type point_type
typedef base_type::point_set_type point_set_type
typedef base_type::point_map_type point_map_type
typedef base_type::iterator iterator
typedef base_type::const_iterator const_iterator
typedef base_type::set_iterator set_iterator
typedef
base_type::const_set_iterator 
const_set_iterator
typedef MultiIndex< ordinal_type > multiindex_type

Public Member Functions

 QuadraturePseudoSpectralOperator (const OrthogPolyBasis< ordinal_type, value_type > &basis, const Quadrature< ordinal_type, value_type > &quad, const point_compare_type &point_compare=point_compare_type())
 Constructor.
virtual ~QuadraturePseudoSpectralOperator ()
 Destructor.
ordinal_type point_size () const
 Number of points.
ordinal_type coeff_size () const
 Number of coefficients.
iterator begin ()
 Iterator to begining of point set.
iterator end ()
 Iterator to end of point set.
const_iterator begin () const
 Iterator to begining of point set.
const_iterator end () const
 Iterator to end of point set.
set_iterator set_begin ()
 Iterator to begining of point set.
set_iterator set_end ()
 Iterator to end of point set.
const_set_iterator set_begin () const
 Iterator to begining of point set.
const_set_iterator set_end () const
 Iterator to end of point set.
ordinal_type index (const point_type &point) const
 Get point index for given point.
const point_typepoint (ordinal_type n) const
 Get point for given index.
virtual void transformQP2PCE (const value_type &alpha, const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &input, Teuchos::SerialDenseMatrix< ordinal_type, value_type > &result, const value_type &beta, bool trans=false) const
 Transform values at quadrature points to PCE coefficients.
virtual void transformPCE2QP (const value_type &alpha, const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &input, Teuchos::SerialDenseMatrix< ordinal_type, value_type > &result, const value_type &beta, bool trans=false) const
 Transform PCE coefficients to quadrature values.

Protected Attributes

ordinal_type coeff_sz
 Number of coefficients.
point_set_type points
 Quadrature points.
point_map_type point_map
 Map index to point term.
Teuchos::SerialDenseMatrix
< ordinal_type, value_type > 
qp2pce
 Matrix mapping points to coefficients.
Teuchos::SerialDenseMatrix
< ordinal_type, value_type > 
pce2qp
 Matrix mapping coefficients to points.
Teuchos::BLAS< ordinal_type,
value_type > 
blas
 BLAS wrappers.

Detailed Description

template<typename ordinal_t, typename value_t, typename point_compare_type = typename DefaultPointCompare<ordinal_t,value_t>::type>
class Stokhos::QuadraturePseudoSpectralOperator< ordinal_t, value_t, point_compare_type >

An operator for building pseudo-spectral coefficients using an arbitrary quadrature rule.


Member Function Documentation

template<typename ordinal_t , typename value_t , typename point_compare_type = typename DefaultPointCompare<ordinal_t,value_t>::type>
virtual void Stokhos::QuadraturePseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::transformPCE2QP ( const value_type &  alpha,
const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &  input,
Teuchos::SerialDenseMatrix< ordinal_type, value_type > &  result,
const value_type &  beta,
bool  trans = false 
) const [inline, virtual]

Transform PCE coefficients to quadrature values.

input is a vector storing polynomial chaos coefficients and result will contain the resulting values at the quadrature points. input and result can have multiple columns for vector-valued functions and set trans to true if these (multi-) vectors are layed out in a transposed fashion.

Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.

template<typename ordinal_t , typename value_t , typename point_compare_type = typename DefaultPointCompare<ordinal_t,value_t>::type>
virtual void Stokhos::QuadraturePseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::transformQP2PCE ( const value_type &  alpha,
const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &  input,
Teuchos::SerialDenseMatrix< ordinal_type, value_type > &  result,
const value_type &  beta,
bool  trans = false 
) const [inline, virtual]

Transform values at quadrature points to PCE coefficients.

input is a vector storing values of a function at the quadrature points, and result will contain the resulting polynomial chaos coefficients. input and result can have multiple columns for vector-valued functions and set trans to true if these (multi-) vectors are layed out in a transposed fashion.

Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.


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