Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
Abstract base class for multivariate orthogonal polynomials generated from tensor products of univariate polynomials. More...
#include <Stokhos_ProductBasis.hpp>
Public Member Functions | |
ProductBasis () | |
Constructor. More... | |
virtual | ~ProductBasis () |
Destructor. More... | |
virtual const MultiIndex < ordinal_type > & | term (ordinal_type i) const =0 |
Get orders of each coordinate polynomial given an index i . More... | |
virtual ordinal_type | index (const MultiIndex< ordinal_type > &term) const =0 |
Get index of the multivariate polynomial given orders of each coordinate. More... | |
virtual Teuchos::Array < Teuchos::RCP< const OneDOrthogPolyBasis < ordinal_type, value_type > > > | getCoordinateBases () const =0 |
Return array of coordinate bases. More... | |
virtual MultiIndex< ordinal_type > | getMaxOrders () const =0 |
Return maximum order allowable for each coordinate basis. More... | |
Public Member Functions inherited from Stokhos::OrthogPolyBasis< ordinal_type, value_type > | |
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 | |
ProductBasis (const ProductBasis &) | |
ProductBasis & | operator= (const ProductBasis &b) |
Abstract base class for multivariate orthogonal polynomials generated from tensor products of univariate polynomials.
where is the dimension of the basis. This class adds methods for indexing the multivariate polynomial and getting the coordinate bases.
Definition at line 31 of file Stokhos_ProductBasis.hpp.
|
inline |
Constructor.
Definition at line 36 of file Stokhos_ProductBasis.hpp.
|
inlinevirtual |
Destructor.
Definition at line 39 of file Stokhos_ProductBasis.hpp.
|
private |
|
pure virtual |
Get orders of each coordinate polynomial given an index i
.
The returned array is of size , where is the dimension of the basis, and entry is given by where .
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::ProductLanczosPCEBasis< 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 |
Get index of the multivariate polynomial given orders of each coordinate.
Given the array term
storing , returns the index such that .
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::ProductLanczosPCEBasis< 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 of coordinate bases.
Array is of size dimension().
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< 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 maximum order allowable for each coordinate basis.
Implemented in Stokhos::CompletePolynomialBasis< ordinal_type, value_type >, Stokhos::CompletePolynomialBasis< OrdinalType, ValueType >, Stokhos::CompletePolynomialBasis< int, double >, Stokhos::ProductLanczosPCEBasis< 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 >.
|
private |