queso-0.57.1
|
Base class for multi-dimensional quadrature rules. More...
#include <MultiDQuadratureBase.h>
Public Member Functions | |
MultiDQuadratureBase (const VectorSubset< V, M > &domain) | |
virtual | ~MultiDQuadratureBase ()=0 |
Pure virtual destructor, forcing this to be an abstract object. More... | |
const std::vector< typename QUESO::SharedPtr< V >::Type > & | positions () const |
const VectorSubset< V, M > & | getDomain () const |
Public Member Functions inherited from QUESO::BaseQuadrature | |
BaseQuadrature () | |
virtual | ~BaseQuadrature ()=0 |
Pure virtual destructor, forcing this to be an abstract object. More... | |
const std::vector< double > & | weights () const |
Array of the weights used in the numerical integration. More... | |
Protected Attributes | |
std::vector< typename QUESO::SharedPtr< V >::Type > | m_positions |
Locations of quadrature points. More... | |
const VectorSubset< V, M > & | m_domain |
Domain over which the quadrature will be performed. More... | |
Protected Attributes inherited from QUESO::BaseQuadrature | |
std::vector< double > | m_weights |
Base class for multi-dimensional quadrature rules.
Base class for numerical integration of functions of multiple variables using quadrature rules. Subclasses will implement the actual quadrature rule and should populate the positions and weights. The integration will be performed over the user-supplied domain.
The intended use of these rules is that the constructor builds the rule and populates the positions and weights and then the user can perform the sum \( \sum_{i=1}^N f(x_i) w_i \).
Definition at line 48 of file MultiDQuadratureBase.h.
|
inline |
Definition at line 52 of file MultiDQuadratureBase.h.
|
inlinepure virtual |
Pure virtual destructor, forcing this to be an abstract object.
Definition at line 79 of file MultiDQuadratureBase.h.
|
inline |
Definition at line 64 of file MultiDQuadratureBase.h.
References QUESO::MultiDQuadratureBase< V, M >::m_domain.
|
inline |
Definition at line 60 of file MultiDQuadratureBase.h.
References QUESO::MultiDQuadratureBase< V, M >::m_positions.
|
protected |
Domain over which the quadrature will be performed.
Definition at line 74 of file MultiDQuadratureBase.h.
Referenced by QUESO::MultiDQuadratureBase< V, M >::getDomain(), and QUESO::MonteCarloQuadrature< V, M >::MonteCarloQuadrature().
|
protected |
Locations of quadrature points.
Definition at line 71 of file MultiDQuadratureBase.h.
Referenced by QUESO::MonteCarloQuadrature< V, M >::MonteCarloQuadrature(), QUESO::MultiDQuadratureBase< V, M >::positions(), and QUESO::TensorProductQuadrature< V, M >::TensorProductQuadrature().