queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
QUESO::BaseQuadrature Class Referenceabstract

Base class for quadrature rules. More...

#include <BaseQuadrature.h>

Inheritance diagram for QUESO::BaseQuadrature:
QUESO::Base1DQuadrature QUESO::MultiDQuadratureBase< V, M > QUESO::GaussianHermite1DQuadrature QUESO::Generic1DQuadrature QUESO::UniformLegendre1DQuadrature QUESO::WignerChebyshev2nd1DQuadrature QUESO::WignerInverseChebyshev1st1DQuadrature QUESO::MonteCarloQuadrature< V, M > QUESO::TensorProductQuadrature< V, M >

Public Member Functions

 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< double > m_weights
 

Detailed Description

Base class for quadrature rules.

This serves as the base class for approximating integrals using numerical quadrature. Namely,

\[ \int_{\Omega} f(x) \; dx \approx \sum_{i=1}^N f(x_i) w_i \]

This class contains the weights. Subclasses will have the positions since the position can be one-dimensional (Base1DQuadrature) or multi-dimensional (MultiDQuadratureBase).

Definition at line 40 of file BaseQuadrature.h.

Constructor & Destructor Documentation

QUESO::BaseQuadrature::BaseQuadrature ( )
inline

Definition at line 44 of file BaseQuadrature.h.

44 {}
QUESO::BaseQuadrature::~BaseQuadrature ( )
inlinepure virtual

Pure virtual destructor, forcing this to be an abstract object.

Definition at line 60 of file BaseQuadrature.h.

60 {}

Member Function Documentation

const std::vector<double>& QUESO::BaseQuadrature::weights ( ) const
inline

Array of the weights used in the numerical integration.

Definition at line 50 of file BaseQuadrature.h.

References m_weights.

Referenced by QUESO::Generic1DQuadrature::Generic1DQuadrature().

51  { queso_assert(!m_weights.empty());
52  return m_weights; }
std::vector< double > m_weights

Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Tue Jun 5 2018 19:49:20 for queso-0.57.1 by  doxygen 1.8.5