42#ifndef STOKHOS_PSEUDO_SPECTRAL_OPERATOR_HPP
43#define STOKHOS_PSEUDO_SPECTRAL_OPERATOR_HPP
46#include "Teuchos_Array.hpp"
53 template <
typename ordinal_type,
typename value_type>
62 template <
typename ordinal_t,
64 typename point_compare_type =
72 typedef std::map<point_type, std::pair<value_type,ordinal_type>,
76 typedef typename point_map_type::iterator
iterator;
133 const Teuchos::SerialDenseMatrix<ordinal_type,value_type>& input,
134 Teuchos::SerialDenseMatrix<ordinal_type,value_type>& result,
136 bool trans =
false)
const = 0;
148 const Teuchos::SerialDenseMatrix<ordinal_type,value_type>& input,
149 Teuchos::SerialDenseMatrix<ordinal_type,value_type>& result,
151 bool trans =
false)
const = 0;
A functor for comparing floating-point numbers to some tolerance.
A comparison functor implementing a strict weak ordering based lexographic ordering.
An operator interface for building pseudo-spectral approximations.
virtual const point_type & point(ordinal_type n) const =0
Get point for given index.
virtual iterator end()=0
Iterator to end of point set.
point_map_type::const_iterator const_iterator
TensorProductElement< ordinal_type, value_type > point_type
virtual const_set_iterator set_begin() const =0
Iterator to begining of point set.
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 const_iterator end() const =0
Iterator to end of point set.
virtual ordinal_type coeff_size() const =0
Number of coefficients.
point_set_type::iterator set_iterator
virtual iterator begin()=0
Iterator to begining of point set.
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.
point_set_type::const_iterator const_set_iterator
Teuchos::Array< point_type > point_map_type
virtual const_set_iterator set_end() const =0
Iterator to end of point set.
std::map< point_type, std::pair< value_type, ordinal_type >, point_compare_type > point_set_type
virtual ordinal_type point_size() const =0
Number of points.
PseudoSpectralOperator()
Constructor.
point_map_type::iterator iterator
virtual ordinal_type index(const point_type &point) const =0
Get point index for given point.
virtual set_iterator set_end()=0
Iterator to end of point set.
virtual set_iterator set_begin()=0
Iterator to begining of point set.
virtual ~PseudoSpectralOperator()
Destructor.
virtual const_iterator begin() const =0
Iterator to begining of point set.
Container storing a term in a generalized tensor product.
Top-level namespace for Stokhos classes and functions.
Struct defining default point compare type.
LexographicLess< TensorProductElement< ordinal_type, value_type >, FloatingPointLess< value_type > > type