Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
An operator for building pseudo-spectral coefficients using a sparse Smolyak construction. More...
#include <Stokhos_SmolyakPseudoSpectralOperator.hpp>
Public Member Functions | |
template<typename coeff_compare_type > | |
SmolyakPseudoSpectralOperator (const SmolyakBasis< ordinal_type, value_type, coeff_compare_type > &smolyak_basis, bool use_smolyak_apply=true, bool use_pst=true, const point_compare_type &point_compare=point_compare_type()) | |
Constructor. More... | |
virtual | ~SmolyakPseudoSpectralOperator () |
Destructor. More... | |
ordinal_type | point_size () const |
Number of points. More... | |
ordinal_type | coeff_size () const |
Number of coefficients. More... | |
iterator | begin () |
Iterator to begining of point set. More... | |
iterator | end () |
Iterator to end of point set. More... | |
const_iterator | begin () const |
Iterator to begining of point set. More... | |
const_iterator | end () const |
Iterator to end of point set. More... | |
set_iterator | set_begin () |
Iterator to begining of point set. More... | |
set_iterator | set_end () |
Iterator to end of point set. More... | |
const_set_iterator | set_begin () const |
Iterator to begining of point set. More... | |
const_set_iterator | set_end () const |
Iterator to end of point set. More... | |
ordinal_type | index (const point_type &point) const |
Get point index for given point. More... | |
const point_type & | point (ordinal_type n) const |
Get point for given index. More... | |
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. More... | |
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. More... | |
Public Member Functions inherited from Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type > | |
PseudoSpectralOperator () | |
Constructor. More... | |
virtual | ~PseudoSpectralOperator () |
Destructor. More... | |
Protected Attributes | |
bool | use_smolyak |
Use Smolyak apply method. More... | |
ordinal_type | coeff_sz |
Number of coefficients. More... | |
point_set_type | points |
Smolyak sparse grid. More... | |
point_map_type | point_map |
Map index to sparse grid term. More... | |
Teuchos::Array< value_type > | smolyak_coeffs |
Smolyak coefficients. More... | |
operator_set_type | operators |
Tensor pseudospectral operators. More... | |
Teuchos::Array< Teuchos::Array < ordinal_type > > | gather_maps |
Gather maps for each operator for Smolyak apply. More... | |
Teuchos::Array< Teuchos::Array < ordinal_type > > | scatter_maps |
Scatter maps for each operator for Smolyak apply. More... | |
Teuchos::SerialDenseMatrix < ordinal_type, value_type > | qp2pce |
Matrix mapping points to coefficients. More... | |
Teuchos::SerialDenseMatrix < ordinal_type, value_type > | pce2qp |
Matrix mapping coefficients to points. More... | |
Teuchos::BLAS< ordinal_type, value_type > | blas |
BLAS wrappers. More... | |
An operator for building pseudo-spectral coefficients using a sparse Smolyak construction.
Definition at line 61 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef ordinal_t Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::ordinal_type |
Definition at line 65 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef value_t Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::value_type |
Definition at line 66 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef PseudoSpectralOperator<ordinal_type,value_type,point_compare_type> Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::base_type |
Definition at line 67 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef base_type::point_type Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::point_type |
Definition at line 68 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef base_type::point_set_type Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::point_set_type |
Definition at line 69 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef base_type::point_map_type Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::point_map_type |
Definition at line 70 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef base_type::iterator Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::iterator |
Definition at line 71 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef base_type::const_iterator Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::const_iterator |
Definition at line 72 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef base_type::set_iterator Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::set_iterator |
Definition at line 73 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef base_type::const_set_iterator Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::const_set_iterator |
Definition at line 74 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef MultiIndex<ordinal_type> Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::multiindex_type |
Definition at line 76 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef TensorProductPseudoSpectralOperator<ordinal_type, value_type> Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::operator_type |
Definition at line 77 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
typedef Teuchos::Array< Teuchos::RCP<operator_type> > Stokhos::SmolyakPseudoSpectralOperator< ordinal_t, value_t, point_compare_type >::operator_set_type |
Definition at line 78 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
Stokhos::SmolyakPseudoSpectralOperator< ordinal_type, value_type, point_compare_type >::SmolyakPseudoSpectralOperator | ( | const SmolyakBasis< ordinal_type, value_type, coeff_compare_type > & | smolyak_basis, |
bool | use_smolyak_apply = true , |
||
bool | use_pst = true , |
||
const point_compare_type & | point_compare = point_compare_type() |
||
) |
Constructor.
Definition at line 45 of file Stokhos_SmolyakPseudoSpectralOperatorImp.hpp.
|
inlinevirtual |
Destructor.
Definition at line 89 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Number of points.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 92 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Number of coefficients.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 95 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Iterator to begining of point set.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 98 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Iterator to end of point set.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 101 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Iterator to begining of point set.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 104 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Iterator to end of point set.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 107 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Iterator to begining of point set.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 110 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Iterator to end of point set.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 113 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Iterator to begining of point set.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 116 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Iterator to end of point set.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 119 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Get point index for given point.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 122 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
inlinevirtual |
Get point for given index.
Implements Stokhos::PseudoSpectralOperator< ordinal_t, value_t, point_compare_type >.
Definition at line 130 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
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 >.
Definition at line 165 of file Stokhos_SmolyakPseudoSpectralOperatorImp.hpp.
|
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 >.
Definition at line 182 of file Stokhos_SmolyakPseudoSpectralOperatorImp.hpp.
|
protected |
Apply transformation operator using direct method.
Definition at line 204 of file Stokhos_SmolyakPseudoSpectralOperatorImp.hpp.
|
protected |
Transform values at quadrature points to PCE coefficients using Smolyak formula.
Definition at line 235 of file Stokhos_SmolyakPseudoSpectralOperatorImp.hpp.
|
protected |
Transform PCE coefficients to values at quadrature points using Smolyak formula.
Definition at line 263 of file Stokhos_SmolyakPseudoSpectralOperatorImp.hpp.
|
protected |
Definition at line 293 of file Stokhos_SmolyakPseudoSpectralOperatorImp.hpp.
|
protected |
Definition at line 314 of file Stokhos_SmolyakPseudoSpectralOperatorImp.hpp.
|
protected |
Use Smolyak apply method.
Definition at line 210 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
protected |
Number of coefficients.
Definition at line 213 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
protected |
Smolyak sparse grid.
Definition at line 216 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
protected |
Map index to sparse grid term.
Definition at line 219 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
protected |
Smolyak coefficients.
Definition at line 222 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
protected |
Tensor pseudospectral operators.
Definition at line 225 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
protected |
Gather maps for each operator for Smolyak apply.
Definition at line 228 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
protected |
Scatter maps for each operator for Smolyak apply.
Definition at line 231 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
protected |
Matrix mapping points to coefficients.
Definition at line 234 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
protected |
Matrix mapping coefficients to points.
Definition at line 237 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.
|
protected |
BLAS wrappers.
Definition at line 240 of file Stokhos_SmolyakPseudoSpectralOperator.hpp.