queso-0.57.1
|
Class for generic one-dimensional functions. More...
#include <1D1DFunction.h>
Public Member Functions | |
Constructor/Destructor methods | |
Generic1D1DFunction (double minDomainValue, double maxDomainValue, double(*valueRoutinePtr)(double domainValue, const void *routinesDataPtr), double(*derivRoutinePtr)(double domainValue, const void *routinesDataPtr), const void *routinesDataPtr) | |
Default constructor. More... | |
~Generic1D1DFunction () | |
Destructor. More... | |
Mathematical methods | |
double | value (double domainValue) const |
Returns the value of the (one-dimensional) function at point domainValue . More... | |
double | deriv (double domainValue) const |
Returns the value of the derivative of the function at point domainValue . More... | |
Public Member Functions inherited from QUESO::Base1D1DFunction | |
Base1D1DFunction (double minDomainValue, double maxDomainValue) | |
Default constructor. More... | |
virtual | ~Base1D1DFunction () |
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... | |
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_valueRoutinePtr )(double domainValue, const void *routinesDataPtr) |
double(* | m_derivRoutinePtr )(double domainValue, const void *routinesDataPtr) |
const void * | m_routinesDataPtr |
Protected Attributes inherited from QUESO::Base1D1DFunction | |
double | m_minDomainValue |
double | m_maxDomainValue |
Class for generic one-dimensional functions.
This class implements generic one-dimensional functions.
Definition at line 97 of file 1D1DFunction.h.
QUESO::Generic1D1DFunction::Generic1D1DFunction | ( | double | minDomainValue, |
double | maxDomainValue, | ||
double(*)(double domainValue, const void *routinesDataPtr) | valueRoutinePtr, | ||
double(*)(double domainValue, const void *routinesDataPtr) | derivRoutinePtr, | ||
const void * | routinesDataPtr | ||
) |
Default constructor.
Definition at line 76 of file 1D1DFunction.C.
QUESO::Generic1D1DFunction::~Generic1D1DFunction | ( | ) |
|
virtual |
Returns the value of the derivative of the function at point domainValue
.
This function checks if point domainValue
belongs to the domain of this
function, and in affirmative case, it returns the value of the derivative at such point.
Implements QUESO::Base1D1DFunction.
Definition at line 112 of file 1D1DFunction.C.
References m_derivRoutinePtr, QUESO::Base1D1DFunction::m_maxDomainValue, QUESO::Base1D1DFunction::m_minDomainValue, and m_routinesDataPtr.
|
virtual |
Returns the value of the (one-dimensional) function at point domainValue
.
This function checks if point domainValue
belongs to the domain of this
function, and in affirmative case, it evaluates the function at such point.
Implements QUESO::Base1D1DFunction.
Definition at line 95 of file 1D1DFunction.C.
References QUESO::Base1D1DFunction::m_maxDomainValue, QUESO::Base1D1DFunction::m_minDomainValue, m_routinesDataPtr, and m_valueRoutinePtr.
|
protected |
Definition at line 128 of file 1D1DFunction.h.
Referenced by deriv().
|
protected |
Definition at line 129 of file 1D1DFunction.h.
|
protected |
Definition at line 127 of file 1D1DFunction.h.
Referenced by value().