queso-0.51.1
Protected Attributes | List of all members
QUESO::Base1DQuadrature Class Referenceabstract

Base class for one-dimensional quadrature rules (numerical integration of functions). More...

#include <1DQuadrature.h>

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

Public Member Functions

Constructor/Destructor methods
 Base1DQuadrature (double minDomainValue, double maxDomainValue, unsigned int order)
 Default constructor. More...
 
virtual ~Base1DQuadrature ()
 Virtual destructor. More...
 
Mathematical methods
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...
 
virtual void dumbRoutine () const =0
 A bogus method. More...
 

Protected Attributes

double m_minDomainValue
 
double m_maxDomainValue
 
unsigned int m_order
 
std::vector< double > m_positions
 
std::vector< double > m_weights
 

Detailed Description

Base class for one-dimensional quadrature rules (numerical integration of functions).

Base class for numerical integration via quadrature rules of one-dimensional functions.

Definition at line 47 of file 1DQuadrature.h.

Constructor & Destructor Documentation

QUESO::Base1DQuadrature::Base1DQuadrature ( double  minDomainValue,
double  maxDomainValue,
unsigned int  order 
)

Default constructor.

Definition at line 32 of file 1DQuadrature.C.

References m_maxDomainValue, m_minDomainValue, UQ_FATAL_TEST_MACRO, and QUESO::UQ_UNAVAILABLE_RANK.

36  :
39  m_order (order),
40  m_positions (0),
41  m_weights (0)
42 {
45  "Base1DQuadrature::constructor()",
46  "min >= max");
47  //UQ_FATAL_TEST_MACRO(order == 0, // eep2011
48  // UQ_UNAVAILABLE_RANK,
49  // "Base1DQuadrature::constructor()",
50  // "order = 0");
51 }
std::vector< double > m_weights
Definition: 1DQuadrature.h:86
const int UQ_UNAVAILABLE_RANK
Definition: Defines.h:74
double maxDomainValue() const
Returns the maximum value of the domain of the (one-dimensional) function.
Definition: 1DQuadrature.C:64
std::vector< double > m_positions
Definition: 1DQuadrature.h:85
unsigned int order() const
Returns the order of the quadrature rule.
Definition: 1DQuadrature.C:70
double minDomainValue() const
Returns the minimum value of the domain of the (one-dimensional) function.
Definition: 1DQuadrature.C:58
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Definition: Defines.h:223
QUESO::Base1DQuadrature::~Base1DQuadrature ( )
virtual

Virtual destructor.

Definition at line 53 of file 1DQuadrature.C.

54 {
55 }

Member Function Documentation

virtual void QUESO::Base1DQuadrature::dumbRoutine ( ) const
pure virtual
double QUESO::Base1DQuadrature::maxDomainValue ( ) const

Returns the maximum value of the domain of the (one-dimensional) function.

Definition at line 64 of file 1DQuadrature.C.

References m_maxDomainValue.

65 {
66  return m_maxDomainValue;
67 }
double QUESO::Base1DQuadrature::minDomainValue ( ) const

Returns the minimum value of the domain of the (one-dimensional) function.

Definition at line 58 of file 1DQuadrature.C.

References m_minDomainValue.

59 {
60  return m_minDomainValue;
61 }
unsigned int QUESO::Base1DQuadrature::order ( ) const

Returns the order of the quadrature rule.

Definition at line 70 of file 1DQuadrature.C.

References m_order.

71 {
72  return m_order;
73 }
const std::vector< double > & QUESO::Base1DQuadrature::positions ( ) const

Array of the positions for the numerical integration.

Definition at line 76 of file 1DQuadrature.C.

References m_positions, UQ_FATAL_TEST_MACRO, and QUESO::UQ_UNAVAILABLE_RANK.

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

77 {
78  UQ_FATAL_TEST_MACRO(m_positions.size() == 0,
80  "Base1DQuadrature::positions()",
81  "size = 0");
82  return m_positions;
83 }
const int UQ_UNAVAILABLE_RANK
Definition: Defines.h:74
std::vector< double > m_positions
Definition: 1DQuadrature.h:85
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Definition: Defines.h:223
const std::vector< double > & QUESO::Base1DQuadrature::weights ( ) const

Array of the weights used in the numerical integration.

Definition at line 86 of file 1DQuadrature.C.

References m_weights, UQ_FATAL_TEST_MACRO, and QUESO::UQ_UNAVAILABLE_RANK.

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

87 {
88  UQ_FATAL_TEST_MACRO(m_weights.size() == 0,
90  "Base1DQuadrature::weights()",
91  "size = 0");
92  return m_weights;
93 }
std::vector< double > m_weights
Definition: 1DQuadrature.h:86
const int UQ_UNAVAILABLE_RANK
Definition: Defines.h:74
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Definition: Defines.h:223

Member Data Documentation

double QUESO::Base1DQuadrature::m_maxDomainValue
protected
double QUESO::Base1DQuadrature::m_minDomainValue
protected
unsigned int QUESO::Base1DQuadrature::m_order
protected
std::vector<double> QUESO::Base1DQuadrature::m_positions
protected
std::vector<double> QUESO::Base1DQuadrature::m_weights
protected

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

Generated on Thu Apr 23 2015 19:26:17 for queso-0.51.1 by  doxygen 1.8.5