|
queso-0.53.0
|
Class for addition of a one-dimensional function with another. More...
#include <1D1DFunction.h>


Public Member Functions | |
Constructor/Destructor methods | |
| FuncPlusFunc1D1DFunction (const Base1D1DFunction &func1, const Base1D1DFunction &func2) | |
| Default constructor. More... | |
| ~FuncPlusFunc1D1DFunction () | |
| Destructor. More... | |
Mathematical methods | |
| double | value (double domainValue) const |
Returns the value of the addition of function func1 and func2 evaluated at the point domainValue, i.e. returnValue = func1(domainValue)+func2(domainValue) . More... | |
| double | deriv (double domainValue) const |
| TODO: Returns the value of the derivative of the addition of two functions. 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 | |
| const Base1D1DFunction & | m_func1 |
| const Base1D1DFunction & | m_func2 |
Protected Attributes inherited from QUESO::Base1D1DFunction | |
| double | m_minDomainValue |
| double | m_maxDomainValue |
Class for addition of a one-dimensional function with another.
This class implements the addition of two generic one-dimensional functions (both functions may be of any type of functions derived from Base1D1DFunction).
Definition at line 504 of file 1D1DFunction.h.
| QUESO::FuncPlusFunc1D1DFunction::FuncPlusFunc1D1DFunction | ( | const Base1D1DFunction & | func1, |
| const Base1D1DFunction & | func2 | ||
| ) |
Default constructor.
Definition at line 695 of file 1D1DFunction.C.
| QUESO::FuncPlusFunc1D1DFunction::~FuncPlusFunc1D1DFunction | ( | ) |
|
virtual |
TODO: Returns the value of the derivative of the addition of two functions.
Implements QUESO::Base1D1DFunction.
Definition at line 720 of file 1D1DFunction.C.
References QUESO::Base1D1DFunction::m_maxDomainValue, QUESO::Base1D1DFunction::m_minDomainValue, queso_not_implemented, queso_require_msg, and value().
|
virtual |
Returns the value of the addition of function func1 and func2 evaluated at the point domainValue, i.e. returnValue = func1(domainValue)+func2(domainValue) .
This function calls the value() method of the both functions and adds their return value with one another.
Implements QUESO::Base1D1DFunction.
Definition at line 710 of file 1D1DFunction.C.
References m_func1, m_func2, and QUESO::Base1D1DFunction::value().
Referenced by deriv().
|
protected |
Definition at line 531 of file 1D1DFunction.h.
Referenced by value().
|
protected |
Definition at line 532 of file 1D1DFunction.h.
Referenced by value().