Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_UserDefinedQuadrature.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_USERDEFINEDQUADRATURE
11 #define STOKHOS_USERDEFINEDQUADRATURE
12 
13 #include "Stokhos_Quadrature.hpp"
15 #include "Teuchos_RCP.hpp"
16 
17 namespace Stokhos {
18 
19  template <typename ordinal_type, typename value_type>
20  class UserDefinedQuadrature : public Quadrature<ordinal_type,value_type> {
21  public:
22 
27  const Teuchos::RCP<const Teuchos::Array<value_type> >& weights);
28 
32  const Teuchos::RCP<const Teuchos::Array<value_type> >& weights,
33  const Teuchos::RCP<const Teuchos::Array< Teuchos::Array<value_type> > >& values);
34 
37 
39  virtual ordinal_type size() const { return quad_weights->size(); }
40 
43  getQuadPoints() const;
44 
46  virtual const Teuchos::Array<value_type>&
47  getQuadWeights() const;
48 
51  getBasisAtQuadPoints() const;
52 
54  virtual std::ostream& print(std::ostream& os) const;
55 
56  private:
57 
58  // Prohibit copying
60 
61  // Prohibit Assignment
63 
64  protected:
65 
68 
71 
74 
75  }; // class UserDefinedQuadrature
76 
77 } // namespace Stokhos
78 
79 // Include template definitions
81 
82 #endif // STOKHOS_USERDEFINEDQUADRATURE
virtual const Teuchos::Array< Teuchos::Array< value_type > > & getQuadPoints() const
Get quadrature points.
Teuchos::RCP< const Teuchos::Array< Teuchos::Array< value_type > > > quad_values
Quadrature values.
UserDefinedQuadrature & operator=(const UserDefinedQuadrature &b)
Abstract base class for multivariate orthogonal polynomials.
Teuchos::RCP< const Teuchos::Array< value_type > > quad_weights
Quadrature weights.
Abstract base class for quadrature methods.
virtual std::ostream & print(std::ostream &os) const
Print quadrature data.
virtual ordinal_type size() const
Get number of quadrature points.
Teuchos::RCP< const Teuchos::Array< Teuchos::Array< value_type > > > quad_points
Quadrature points.
virtual const Teuchos::Array< value_type > & getQuadWeights() const
Get quadrature weights.
virtual const Teuchos::Array< Teuchos::Array< value_type > > & getBasisAtQuadPoints() const
Get values of basis at quadrature points.
UserDefinedQuadrature(const Teuchos::RCP< const OrthogPolyBasis< ordinal_type, value_type > > &basis, const Teuchos::RCP< const Teuchos::Array< Teuchos::Array< value_type > > > &points, const Teuchos::RCP< const Teuchos::Array< value_type > > &weights)
Constructor.