queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
MultiDQuadratureBase.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // QUESO - a library to support the Quantification of Uncertainty
5 // for Estimation, Simulation and Optimization
6 //
7 // Copyright (C) 2008-2017 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef UQ_MULTI_D_QUADRATURE_BASE_H
26 #define UQ_MULTI_D_QUADRATURE_BASE_H
27 
28 #include <queso/BaseQuadrature.h>
29 #include <queso/VectorSubset.h>
30 #include <queso/SharedPtr.h>
31 
32 namespace QUESO
33 {
34  // Forward declarations
35  class GslVector;
36  class GslMatrix;
37 
39 
47  template <class V = GslVector, class M = GslMatrix>
49  {
50  public:
51 
53  : BaseQuadrature(),
54  m_domain(domain)
55  {}
56 
58  virtual ~MultiDQuadratureBase() =0;
59 
60  const std::vector<typename QUESO::SharedPtr<V>::Type> & positions() const
61  { queso_assert(!m_positions.empty());
62  return m_positions; }
63 
64  const VectorSubset<V,M> & getDomain() const
65  { return m_domain; }
66 
67  protected:
68 
70 
71  std::vector<typename QUESO::SharedPtr<V>::Type> m_positions;
72 
75  };
76 
77  template <class V, class M>
78  inline
80 
81 } // end namespace QUESO
82 
83 #endif // UQ_MULTI_D_QUADRATURE_BASE_H
MultiDQuadratureBase(const VectorSubset< V, M > &domain)
A templated class for handling subsets.
Definition: VectorSubset.h:46
const VectorSubset< V, M > & getDomain() const
virtual ~MultiDQuadratureBase()=0
Pure virtual destructor, forcing this to be an abstract object.
Base class for multi-dimensional quadrature rules.
std::vector< typename QUESO::SharedPtr< V >::Type > m_positions
Locations of quadrature points.
const std::vector< typename QUESO::SharedPtr< V >::Type > & positions() const
const VectorSubset< V, M > & m_domain
Domain over which the quadrature will be performed.
Base class for quadrature rules.

Generated on Tue Jun 5 2018 19:48:55 for queso-0.57.1 by  doxygen 1.8.5