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

Class for one-dimensional functions. More...

#include <1D1DFunction.h>

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

Public Member Functions

Constructor/Destructor methods
 Base1D1DFunction (double minDomainValue, double maxDomainValue)
 Default constructor. More...
 
virtual ~Base1D1DFunction ()
 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...
 
virtual double value (double domainValue) const =0
 Returns the value of the (one-dimensional) function. See template specialization. More...
 
virtual double deriv (double domainValue) const =0
 Returns the value of the derivative of the function. See template specialization. More...
 
virtual double multiplyAndIntegrate (const Base1D1DFunction &func, unsigned int quadratureOrder, double *resultWithMultiplicationByTAsWell) const
 TODO: Multiplies this function with function, and integrates it numerically. See template specialization. More...
 

Protected Attributes

double m_minDomainValue
 
double m_maxDomainValue
 

Detailed Description

Class for one-dimensional functions.

Base class for one-dimensional functions.

Definition at line 53 of file 1D1DFunction.h.

Constructor & Destructor Documentation

QUESO::Base1D1DFunction::Base1D1DFunction ( double  minDomainValue,
double  maxDomainValue 
)

Default constructor.

Definition at line 33 of file 1D1DFunction.C.

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

36  :
39 {
42  "Base1D1DFunction::constructor()",
43  "min >= max");
44 }
double maxDomainValue() const
Returns the maximum value of the domain of the (one-dimensional) function.
Definition: 1D1DFunction.C:57
const int UQ_UNAVAILABLE_RANK
Definition: Defines.h:74
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Definition: Defines.h:223
double minDomainValue() const
Returns the minimum value of the domain of the (one-dimensional) function.
Definition: 1D1DFunction.C:51
QUESO::Base1D1DFunction::~Base1D1DFunction ( )
virtual

Destructor.

Definition at line 46 of file 1D1DFunction.C.

47 {
48 }

Member Function Documentation

virtual double QUESO::Base1D1DFunction::deriv ( double  domainValue) const
pure virtual
double QUESO::Base1D1DFunction::maxDomainValue ( ) const

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

Definition at line 57 of file 1D1DFunction.C.

References m_maxDomainValue.

58 {
59  return m_maxDomainValue;
60 }
double QUESO::Base1D1DFunction::minDomainValue ( ) const

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

Definition at line 51 of file 1D1DFunction.C.

References m_minDomainValue.

52 {
53  return m_minDomainValue;
54 }
double QUESO::Base1D1DFunction::multiplyAndIntegrate ( const Base1D1DFunction func,
unsigned int  quadratureOrder,
double *  resultWithMultiplicationByTAsWell 
) const
virtual

TODO: Multiplies this function with function, and integrates it numerically. See template specialization.

Todo:
: Please, implement me!

Definition at line 63 of file 1D1DFunction.C.

References UQ_FATAL_TEST_MACRO, QUESO::UQ_UNAVAILABLE_RANK, and value().

64 {
65  double value = 0.;
66 
69  "Base1D1DFunction::multiplyAndIntegrate()",
70  "not implemented yet");
71 
72  if (resultWithMultiplicationByTAsWell) { // Just to eliminate INTEL compiler warnings
73  func.value((double) quadratureOrder);
74  }
75 
76  return value;
77 }
virtual double value(double domainValue) const =0
Returns the value of the (one-dimensional) function. See template specialization. ...
const int UQ_UNAVAILABLE_RANK
Definition: Defines.h:74
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Definition: Defines.h:223
virtual double QUESO::Base1D1DFunction::value ( double  domainValue) const
pure virtual

Member Data Documentation

double QUESO::Base1D1DFunction::m_maxDomainValue
protected
double QUESO::Base1D1DFunction::m_minDomainValue
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