10 #ifndef STOKHOS_VECTORORTHOGPOLY_HPP
11 #define STOKHOS_VECTORORTHOGPOLY_HPP
23 template <
typename coeff_type>
100 coeff_type& result)
const;
106 const coeff_type& vec);
109 std::ostream&
print(std::ostream& os)
const;
118 template <
typename coeff_type>
121 return vec.
print(os);
129 #endif // STOKHOS_VECTORORTHOGPOLY_HPP
ProductContainer< coeff_type >::ordinal_type ordinal_type
Typename of ordinals.
virtual ~VectorOrthogPoly()
Destructor.
void sumIntoAllTerms(const value_type &weight, const Teuchos::Array< value_type > &basis_values, const Teuchos::Array< value_type > &basis_norms, const coeff_type &vec)
Evaluate polynomial at supplied basis values.
Cloner for Epetra_Vector coefficients.
VectorOrthogPoly()
Constructor with no basis.
std::ostream & print(std::ostream &os) const
Print polynomial.
VectorOrthogPoly & operator=(const VectorOrthogPoly &)
Assignment.
Base traits definition for ProductContainer.
Abstract base class for multivariate orthogonal polynomials.
std::ostream & operator<<(std::ostream &os, const ProductContainer< coeff_type > &vec)
Teuchos::RCP< const Stokhos::OrthogPolyBasis< ordinal_type, value_type > > basis_
Basis.
A product (in the mathematical sense) container class whose coefficients are vectors, operators, or in general any type that would have an expensive copy constructor.
traits_type::ordinal_type ordinal_type
Typename of ordinals.
A container class storing an orthogonal polynomial whose coefficients are vectors, operators, or in general any type that would have an expensive copy constructor.
void evaluate(const Teuchos::Array< value_type > &basis_values, coeff_type &result) const
Evaluate polynomial at supplied basis values.
ProductContainer< coeff_type >::traits_type traits_type
Typename of traits.
Teuchos::RCP< const Stokhos::OrthogPolyBasis< ordinal_type, value_type > > basis() const
Get basis.
void reset(const Teuchos::RCP< const Stokhos::OrthogPolyBasis< ordinal_type, value_type > > &new_basis, const Teuchos::RCP< const Epetra_BlockMap > &new_map, const typename traits_type::cloner_type &cloner)
Reset to a new basis.
traits_type::value_type value_type
Typename of values.
coeff_type & term(ordinal_type dimension, ordinal_type order)
Get term for dimension dimension and order order.
ProductContainer< coeff_type >::value_type value_type
Typename of values.