42 #ifndef STOKHOS_TENSOR_PRODUCT_BASIS_HPP
43 #define STOKHOS_TENSOR_PRODUCT_BASIS_HPP
67 typename coeff_compare_type =
68 TotalOrderLess<MultiIndex<ordinal_type> > >
84 const coeff_compare_type& coeff_compare = coeff_compare_type());
140 virtual void print(std::ostream& os)
const;
143 virtual const std::string&
getName()
const;
virtual Teuchos::RCP< Stokhos::Sparse3Tensor< ordinal_type, value_type > > computeLinearTripleProductTensor() const
Compute linear triple product tensor where k = 0,1,..,d.
ordinal_type order() const
Return order of basis.
coeff_set_type basis_set
Basis set.
coeff_map_type basis_map
Basis map.
coeff_type max_orders
Maximum orders for each dimension.
virtual value_type evaluateZero(ordinal_type i) const
Evaluate basis polynomial i at zero.
value_type sparse_tol
Tolerance for computing sparse Cijk.
Teuchos::Array< Teuchos::RCP< const OneDOrthogPolyBasis< ordinal_type, value_type > > > getCoordinateBases() const
Return coordinate bases.
Teuchos::Array< Teuchos::Array< value_type > > basis_eval_tmp
Temporary array used in basis evaluation.
virtual const MultiIndex< ordinal_type > & term(ordinal_type i) const
Get orders of each coordinate polynomial given an index i.
virtual Teuchos::RCP< Stokhos::Sparse3Tensor< ordinal_type, value_type > > computeTripleProductTensor() const
Compute triple product tensor.
virtual const std::string & getName() const
Return string name of basis.
ordinal_type sz
Total size of basis.
TensorProductBasis & operator=(const TensorProductBasis &b)
Teuchos::Array< value_type > norms
Norms.
virtual ~TensorProductBasis()
Destructor.
std::map< coeff_type, ordinal_type, coeff_compare_type > coeff_set_type
virtual const Teuchos::Array< value_type > & norm_squared() const
Return array storing norm-squared of each basis polynomial.
Abstract base class for multivariate orthogonal polynomials generated from tensor products of univari...
virtual void evaluateBases(const Teuchos::ArrayView< const value_type > &point, Teuchos::Array< value_type > &basis_vals) const
Evaluate basis polynomials at given point point.
Multivariate orthogonal polynomial basis generated from a tensor product of univariate polynomials...
ordinal_type dimension() const
Return dimension of basis.
std::string name
Name of basis.
Teuchos::Array< Teuchos::RCP< const OneDOrthogPolyBasis< ordinal_type, value_type > > > bases
Array of bases.
Abstract base class for 1-D orthogonal polynomials.
ordinal_type d
Total dimension of basis.
virtual ordinal_type size() const
Return total size of basis.
MultiIndex< ordinal_type > coeff_type
ordinal_type p
Total order of basis.
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 void print(std::ostream &os) const
Print basis to stream os.
virtual ordinal_type index(const MultiIndex< ordinal_type > &term) const
Get index of the multivariate polynomial given orders of each coordinate.
Teuchos::Array< coeff_type > coeff_map_type
virtual MultiIndex< ordinal_type > getMaxOrders() const
Return maximum order allowable for each coordinate basis.