10 #ifndef STOKHOS_PSEUDO_SPECTRAL_OPERATOR_HPP
11 #define STOKHOS_PSEUDO_SPECTRAL_OPERATOR_HPP
21 template <
typename ordinal_type,
typename value_type>
30 template <
typename ordinal_t,
32 typename point_compare_type =
40 typedef std::map<point_type, std::pair<value_type,ordinal_type>,
104 bool trans =
false)
const = 0;
119 bool trans =
false)
const = 0;
A functor for comparing floating-point numbers to some tolerance.
point_set_type::iterator set_iterator
std::map< point_type, std::pair< value_type, ordinal_type >, point_compare_type > point_set_type
virtual set_iterator set_end()=0
Iterator to end of point set.
TensorProductElement< ordinal_type, value_type > point_type
Container storing a term in a generalized tensor product.
Teuchos::Array< point_type > point_map_type
PseudoSpectralOperator()
Constructor.
virtual iterator end()=0
Iterator to end of point set.
An operator interface for building pseudo-spectral approximations.
virtual ordinal_type index(const point_type &point) const =0
Get point index for given point.
virtual void transformQP2PCE(const value_type &alpha, const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &input, Teuchos::SerialDenseMatrix< ordinal_type, value_type > &result, const value_type &beta, bool trans=false) const =0
Transform values at quadrature points to PCE coefficients.
virtual void transformPCE2QP(const value_type &alpha, const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &input, Teuchos::SerialDenseMatrix< ordinal_type, value_type > &result, const value_type &beta, bool trans=false) const =0
Transform PCE coefficients to quadrature values.
virtual ~PseudoSpectralOperator()
Destructor.
virtual ordinal_type point_size() const =0
Number of points.
Struct defining default point compare type.
virtual ordinal_type coeff_size() const =0
Number of coefficients.
std::vector< T >::const_iterator const_iterator
point_map_type::iterator iterator
A comparison functor implementing a strict weak ordering based lexographic ordering.
virtual set_iterator set_begin()=0
Iterator to begining of point set.
point_map_type::const_iterator const_iterator
LexographicLess< TensorProductElement< ordinal_type, value_type >, FloatingPointLess< value_type > > type
std::vector< T >::iterator iterator
virtual iterator begin()=0
Iterator to begining of point set.
point_set_type::const_iterator const_set_iterator
virtual const point_type & point(ordinal_type n) const =0
Get point for given index.