queso-0.53.0
List of all members
QUESO::Generic1DQuadrature Class Reference

Class for one-dimensional generic quadrature rules (numerical integration of functions). More...

#include <1DQuadrature.h>

Inheritance diagram for QUESO::Generic1DQuadrature:
Inheritance graph
[legend]
Collaboration diagram for QUESO::Generic1DQuadrature:
Collaboration graph
[legend]

Public Member Functions

Constructor/Destructor methods
 Generic1DQuadrature (double minDomainValue, double maxDomainValue, const std::vector< double > &positions, const std::vector< double > &weights)
 Default constructor. More...
 
 ~Generic1DQuadrature ()
 Destructor. More...
 
Mathematical methods
void dumbRoutine () const
 Bogus routine. More...
 
- Public Member Functions inherited from QUESO::Base1DQuadrature
 Base1DQuadrature (double minDomainValue, double maxDomainValue, unsigned int order)
 Default constructor. More...
 
virtual ~Base1DQuadrature ()
 Virtual destructor. More...
 
double minDomainValue () const
 Returns the minimum value of the domain of the (one-dimensional) function. More...
 
double maxDomainValue () const
 Returns the maximum value of the domain of the (one-dimensional) function. More...
 
unsigned int order () const
 Returns the order of the quadrature rule. More...
 
const std::vector< double > & positions () const
 Array of the positions for the numerical integration. More...
 
const std::vector< double > & weights () const
 Array of the weights used in the numerical integration. More...
 

Additional Inherited Members

- Protected Attributes inherited from QUESO::Base1DQuadrature
double m_minDomainValue
 
double m_maxDomainValue
 
unsigned int m_order
 
std::vector< double > m_positions
 
std::vector< double > m_weights
 

Detailed Description

Class for one-dimensional generic quadrature rules (numerical integration of functions).

Class for generic quadrature rules for numerical integration of one-dimensional functions.

Definition at line 97 of file 1DQuadrature.h.

Constructor & Destructor Documentation

QUESO::Generic1DQuadrature::Generic1DQuadrature ( double  minDomainValue,
double  maxDomainValue,
const std::vector< double > &  positions,
const std::vector< double > &  weights 
)

Default constructor.

Definition at line 89 of file 1DQuadrature.C.

References QUESO::Base1DQuadrature::m_positions, QUESO::Base1DQuadrature::m_weights, QUESO::Base1DQuadrature::positions(), queso_require_equal_to_msg, queso_require_not_equal_to_msg, and QUESO::Base1DQuadrature::weights().

94  :
96 {
99 
100  queso_require_not_equal_to_msg(m_positions.size(), 0, "invalid positions");
101 
102  queso_require_equal_to_msg(m_positions.size(), m_weights.size(), "inconsistent positions and weight");
103 }
double minDomainValue() const
Returns the minimum value of the domain of the (one-dimensional) function.
Definition: 1DQuadrature.C:55
const std::vector< double > & positions() const
Array of the positions for the numerical integration.
Definition: 1DQuadrature.C:73
std::vector< double > m_positions
Definition: 1DQuadrature.h:85
#define queso_require_not_equal_to_msg(expr1, expr2, msg)
Definition: asserts.h:86
#define queso_require_equal_to_msg(expr1, expr2, msg)
Definition: asserts.h:85
Base1DQuadrature(double minDomainValue, double maxDomainValue, unsigned int order)
Default constructor.
Definition: 1DQuadrature.C:32
double maxDomainValue() const
Returns the maximum value of the domain of the (one-dimensional) function.
Definition: 1DQuadrature.C:61
const std::vector< double > & weights() const
Array of the weights used in the numerical integration.
Definition: 1DQuadrature.C:80
std::vector< double > m_weights
Definition: 1DQuadrature.h:86
QUESO::Generic1DQuadrature::~Generic1DQuadrature ( )

Destructor.

Definition at line 105 of file 1DQuadrature.C.

106 {
107 }

Member Function Documentation

void QUESO::Generic1DQuadrature::dumbRoutine ( ) const
virtual

Bogus routine.

Implements QUESO::Base1DQuadrature.

Definition at line 110 of file 1DQuadrature.C.

111 {
112  return;
113 }

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

Generated on Thu Jun 11 2015 13:52:35 for queso-0.53.0 by  doxygen 1.8.5