queso-0.57.0
Public Member Functions | Protected Attributes | List of all members
QUESO::BaseQuadrature Class Referenceabstract

Base class for quadrature rules. More...

#include <BaseQuadrature.h>

Inheritance diagram for QUESO::BaseQuadrature:
Inheritance graph
[legend]

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

std::vector<double> QUESO::BaseQuadrature::m_weights
protected

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

Generated on Sat Apr 22 2017 14:04:39 for queso-0.57.0 by  doxygen 1.8.5