42#ifndef STOKHOS_TENSOR_PRODUCT_BASIS_HPP
43#define STOKHOS_TENSOR_PRODUCT_BASIS_HPP
45#include "Teuchos_RCP.hpp"
67 typename coeff_compare_type =
84 const coeff_compare_type& coeff_compare = coeff_compare_type());
119 Teuchos::RCP< Stokhos::Sparse3Tensor<ordinal_type, value_type> >
124 Teuchos::RCP< Stokhos::Sparse3Tensor<ordinal_type, value_type> >
136 const Teuchos::ArrayView<const value_type>& point,
137 Teuchos::Array<value_type>& basis_vals)
const;
140 virtual void print(std::ostream& os)
const;
205 Teuchos::Array< Teuchos::RCP<const OneDOrthogPolyBasis<ordinal_type, value_type> > >
bases;
A multidimensional index.
Abstract base class for 1-D orthogonal polynomials.
ProductBasis()
Constructor.
Teuchos::Array< coeff_type > coeff_map_type
std::map< coeff_type, ordinal_type, LexographicLess< coeff_type > > coeff_set_type
TensorProductBasis & operator=(const TensorProductBasis &b)
virtual const std::string & getName() const
Return string name of basis.
virtual const MultiIndex< ordinal_type > & term(ordinal_type i) const
Get orders of each coordinate polynomial given an index i.
virtual ordinal_type size() const
Return total size of basis.
virtual Teuchos::RCP< Stokhos::Sparse3Tensor< ordinal_type, value_type > > computeLinearTripleProductTensor() const
Compute linear triple product tensor where k = 0,1,..,d.
virtual void evaluateBases(const Teuchos::ArrayView< const value_type > &point, Teuchos::Array< value_type > &basis_vals) const
Evaluate basis polynomials at given point point.
Teuchos::Array< Teuchos::Array< value_type > > basis_eval_tmp
TensorProductBasis(const TensorProductBasis &)
Teuchos::Array< value_type > norms
TensorProductBasis(const Teuchos::Array< Teuchos::RCP< const OneDOrthogPolyBasis< ordinal_type, value_type > > > &bases, const value_type &sparse_tol=1.0e-12, const MultiIndex< ordinal_type > &index=MultiIndex< ordinal_type >(), const coeff_compare_type &coeff_compare=coeff_compare_type())
Constructor.
virtual ~TensorProductBasis()
Destructor.
virtual const Teuchos::Array< value_type > & norm_squared() const
Return array storing norm-squared of each basis polynomial.
virtual ordinal_type index(const MultiIndex< ordinal_type > &term) const
virtual value_type evaluateZero(ordinal_type i) const
Evaluate basis polynomial i at zero.
Teuchos::Array< Teuchos::RCP< const OneDOrthogPolyBasis< ordinal_type, value_type > > > getCoordinateBases() const
Return coordinate bases.
virtual Teuchos::RCP< Stokhos::Sparse3Tensor< ordinal_type, value_type > > computeTripleProductTensor() const
Compute triple product tensor.
ordinal_type order() const
Return order of basis.
ordinal_type dimension() const
Return dimension of basis.
Teuchos::Array< Teuchos::RCP< const OneDOrthogPolyBasis< ordinal_type, value_type > > > bases
virtual MultiIndex< ordinal_type > getMaxOrders() const
Return maximum order allowable for each coordinate basis.
virtual void print(std::ostream &os) const
Print basis to stream os.
MultiIndex< ordinal_type > coeff_type
virtual const value_type & norm_squared(ordinal_type i) const
Return norm squared of basis polynomial i.
A comparison functor implementing a strict weak ordering based total-order ordering,...
Top-level namespace for Stokhos classes and functions.