Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_TensorProductQuadrature.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Stokhos Package
4 //
5 // Copyright 2009 NTESS and the Stokhos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef STOKHOS_TENSORPRODUCTQUADRATURE
11 #define STOKHOS_TENSORPRODUCTQUADRATURE
12 
13 #include "Stokhos_Quadrature.hpp"
14 #include "Stokhos_ProductBasis.hpp"
15 #include "Teuchos_RCP.hpp"
16 
17 namespace Stokhos {
18 
23  template <typename ordinal_type, typename value_type>
24  class TensorProductQuadrature : public Quadrature<ordinal_type,value_type> {
25  public:
26 
28 
34 
36 
40  TensorProductQuadrature(const Teuchos::RCP<const ProductBasis<ordinal_type,value_type> >& product_basis, const ordinal_type& quad_order);
41 
44 
46  virtual ordinal_type size() const { return quad_weights.size(); }
47 
49 
54  getQuadPoints() const;
55 
57 
60  virtual const Teuchos::Array<value_type>&
61  getQuadWeights() const;
62 
64 
69  getBasisAtQuadPoints() const;
70 
72  virtual std::ostream& print(std::ostream& os) const;
73 
74  private:
75 
76  // Prohibit copying
78 
79  // Prohibit Assignment
81 
82  protected:
83 
86 
89 
92 
93  }; // class TensorProductQuadrature
94 
95 } // namespace Stokhos
96 
97 // Include template definitions
99 
100 #endif // STOKHOS_TENSORPRODUCTQUADRATURE
Teuchos::Array< Teuchos::Array< value_type > > quad_points
Quadrature points.
virtual const Teuchos::Array< Teuchos::Array< value_type > > & getQuadPoints() const
Get quadrature points.
virtual const Teuchos::Array< value_type > & getQuadWeights() const
Get quadrature weights.
TensorProductQuadrature(const Teuchos::RCP< const ProductBasis< ordinal_type, value_type > > &product_basis)
Constructor.
TensorProductQuadrature & operator=(const TensorProductQuadrature &b)
virtual const Teuchos::Array< Teuchos::Array< value_type > > & getBasisAtQuadPoints() const
Get values of basis at quadrature points.
Abstract base class for quadrature methods.
virtual ordinal_type size() const
Get number of quadrature points.
Abstract base class for multivariate orthogonal polynomials generated from tensor products of univari...
virtual std::ostream & print(std::ostream &os) const
Print quadrature data.
size_type size() const
Teuchos::Array< Teuchos::Array< value_type > > quad_values
Quadrature values.
Teuchos::Array< value_type > quad_weights
Quadrature weights.
Defines quadrature for a tensor product basis by tensor products of 1-D quadrature rules...