Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
Abstract base class for multivariate orthogonal polynomials. More...
#include <Stokhos_OrthogPolyBasis.hpp>
Public Member Functions | |
OrthogPolyBasis () | |
Constructor. More... | |
virtual | ~OrthogPolyBasis () |
Destructor. More... | |
virtual ordinal_type | order () const =0 |
Return order of basis. More... | |
virtual ordinal_type | dimension () const =0 |
Return dimension of basis. More... | |
virtual ordinal_type | size () const =0 |
Return total size of basis. More... | |
virtual const Teuchos::Array < value_type > & | norm_squared () const =0 |
Return array storing norm-squared of each basis polynomial. More... | |
virtual const value_type & | norm_squared (ordinal_type i) const =0 |
Return norm squared of basis polynomial i . More... | |
virtual Teuchos::RCP < Stokhos::Sparse3Tensor < ordinal_type, value_type > > | computeTripleProductTensor () const =0 |
Compute triple product tensor. More... | |
virtual Teuchos::RCP < Stokhos::Sparse3Tensor < ordinal_type, value_type > > | computeLinearTripleProductTensor () const =0 |
Compute linear triple product tensor where k = 0,1. More... | |
virtual value_type | evaluateZero (ordinal_type i) const =0 |
Evaluate basis polynomial i at zero. More... | |
virtual void | evaluateBases (const Teuchos::ArrayView< const value_type > &point, Teuchos::Array< value_type > &basis_vals) const =0 |
Evaluate basis polynomials at given point point . More... | |
virtual void | print (std::ostream &os) const =0 |
Print basis to stream os . More... | |
virtual const std::string & | getName () const =0 |
Return string name of basis. More... | |
Private Member Functions | |
OrthogPolyBasis (const OrthogPolyBasis &) | |
OrthogPolyBasis & | operator= (const OrthogPolyBasis &b) |
Abstract base class for multivariate orthogonal polynomials.
This class provides an abstract interface for multivariate orthogonal polynomials. Orthogonality is defined by the inner product
where is the density function of the measure associated with the orthogonal polynomials and is the dimension of the domain.
Like most classes in Stokhos, the class is templated on the ordinal and value types. Typically ordinal_type
= int
and value_type
= double
.
Definition at line 74 of file Stokhos_OrthogPolyBasis.hpp.
|
inline |
Constructor.
Definition at line 78 of file Stokhos_OrthogPolyBasis.hpp.
|
inlinevirtual |
Destructor.
Definition at line 81 of file Stokhos_OrthogPolyBasis.hpp.
|
private |
|
pure virtual |
Return order of basis.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< ordinal_type, value_type >, Stokhos::GSReducedPCEBasisBase< ordinal_type, value_type >, Stokhos::MonomialProjGramSchmidtPCEBasis2< ordinal_type, value_type >, Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >, Stokhos::TensorProductBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::TotalOrderBasis< ordinal_type, value_type, coeff_compare_type >, and Stokhos::SmolyakBasis< ordinal_type, value_type, coeff_compare_type >.
|
pure virtual |
Return dimension of basis.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< ordinal_type, value_type >, Stokhos::GSReducedPCEBasisBase< ordinal_type, value_type >, Stokhos::MonomialProjGramSchmidtPCEBasis2< ordinal_type, value_type >, Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >, Stokhos::TensorProductBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::TotalOrderBasis< ordinal_type, value_type, coeff_compare_type >, and Stokhos::SmolyakBasis< ordinal_type, value_type, coeff_compare_type >.
|
pure virtual |
Return total size of basis.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< ordinal_type, value_type >, Stokhos::GSReducedPCEBasisBase< ordinal_type, value_type >, Stokhos::MonomialProjGramSchmidtPCEBasis2< ordinal_type, value_type >, Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >, Stokhos::TensorProductBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::TotalOrderBasis< ordinal_type, value_type, coeff_compare_type >, and Stokhos::SmolyakBasis< ordinal_type, value_type, coeff_compare_type >.
|
pure virtual |
Return array storing norm-squared of each basis polynomial.
Entry of returned array is given by for where is size()-1.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< ordinal_type, value_type >, Stokhos::GSReducedPCEBasisBase< ordinal_type, value_type >, Stokhos::MonomialProjGramSchmidtPCEBasis2< ordinal_type, value_type >, Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >, Stokhos::TensorProductBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::TotalOrderBasis< ordinal_type, value_type, coeff_compare_type >, and Stokhos::SmolyakBasis< ordinal_type, value_type, coeff_compare_type >.
|
pure virtual |
Return norm squared of basis polynomial i
.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< ordinal_type, value_type >, Stokhos::GSReducedPCEBasisBase< ordinal_type, value_type >, Stokhos::MonomialProjGramSchmidtPCEBasis2< ordinal_type, value_type >, Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >, Stokhos::TensorProductBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::TotalOrderBasis< ordinal_type, value_type, coeff_compare_type >, and Stokhos::SmolyakBasis< ordinal_type, value_type, coeff_compare_type >.
|
pure virtual |
Compute triple product tensor.
The entry of the tensor is given by where represents basis polynomial and where is size()-1.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< ordinal_type, value_type >, Stokhos::GSReducedPCEBasisBase< ordinal_type, value_type >, Stokhos::MonomialProjGramSchmidtPCEBasis2< ordinal_type, value_type >, Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >, Stokhos::TensorProductBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::TotalOrderBasis< ordinal_type, value_type, coeff_compare_type >, and Stokhos::SmolyakBasis< ordinal_type, value_type, coeff_compare_type >.
|
pure virtual |
Compute linear triple product tensor where k = 0,1.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< ordinal_type, value_type >, Stokhos::GSReducedPCEBasisBase< ordinal_type, value_type >, Stokhos::MonomialProjGramSchmidtPCEBasis2< ordinal_type, value_type >, Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >, Stokhos::TensorProductBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::TotalOrderBasis< ordinal_type, value_type, coeff_compare_type >, and Stokhos::SmolyakBasis< ordinal_type, value_type, coeff_compare_type >.
|
pure virtual |
Evaluate basis polynomial i
at zero.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< ordinal_type, value_type >, Stokhos::GSReducedPCEBasisBase< ordinal_type, value_type >, Stokhos::MonomialProjGramSchmidtPCEBasis2< ordinal_type, value_type >, Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >, Stokhos::TensorProductBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::TotalOrderBasis< ordinal_type, value_type, coeff_compare_type >, and Stokhos::SmolyakBasis< ordinal_type, value_type, coeff_compare_type >.
|
pure virtual |
Evaluate basis polynomials at given point point
.
Size of returned array is given by size(), and coefficients are ordered from order 0 up to size size()-1.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< ordinal_type, value_type >, Stokhos::GSReducedPCEBasisBase< ordinal_type, value_type >, Stokhos::MonomialProjGramSchmidtPCEBasis2< ordinal_type, value_type >, Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >, Stokhos::TensorProductBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::TotalOrderBasis< ordinal_type, value_type, coeff_compare_type >, and Stokhos::SmolyakBasis< ordinal_type, value_type, coeff_compare_type >.
|
pure virtual |
Print basis to stream os
.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::MonomialProjGramSchmidtPCEBasis2< ordinal_type, value_type >, Stokhos::ProductLanczosPCEBasis< ordinal_type, value_type >, Stokhos::GSReducedPCEBasisBase< ordinal_type, value_type >, Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >, Stokhos::TensorProductBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::TotalOrderBasis< ordinal_type, value_type, coeff_compare_type >, and Stokhos::SmolyakBasis< ordinal_type, value_type, coeff_compare_type >.
|
pure virtual |
Return string name of basis.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< ordinal_type, value_type >, Stokhos::ProductLanczosGramSchmidtPCEBasis< ordinal_type, value_type >, Stokhos::TensorProductBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::MonomialProjGramSchmidtPCEBasis2< ordinal_type, value_type >, Stokhos::TotalOrderBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::SmolyakBasis< ordinal_type, value_type, coeff_compare_type >, Stokhos::MonomialGramSchmidtPCEBasis< ordinal_type, value_type >, and Stokhos::MonomialProjGramSchmidtPCEBasis< ordinal_type, value_type >.
|
private |