queso-0.53.0
|
Class for multiplication of a one-dimensional function by another. More...
#include <1D1DFunction.h>
Public Member Functions | |
Constructor/Destructor methods | |
FuncTimesFunc1D1DFunction (const Base1D1DFunction &func1, const Base1D1DFunction &func2) | |
Default constructor. More... | |
~FuncTimesFunc1D1DFunction () | |
Destructor. More... | |
Mathematical methods | |
double | value (double domainValue) const |
Returns the value of the multiplication of a function func1 by another function func2 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 function func1 by another function func2 at the 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 | |
const Base1D1DFunction & | m_func1 |
const Base1D1DFunction & | m_func2 |
Protected Attributes inherited from QUESO::Base1D1DFunction | |
double | m_minDomainValue |
double | m_maxDomainValue |
Class for multiplication of a one-dimensional function by another.
This class implements the multiplication of a generic one-dimensional function by another (both functions may be of any type of functions derived from Base1D1DFunction).
Definition at line 462 of file 1D1DFunction.h.
QUESO::FuncTimesFunc1D1DFunction::FuncTimesFunc1D1DFunction | ( | const Base1D1DFunction & | func1, |
const Base1D1DFunction & | func2 | ||
) |
Default constructor.
Definition at line 647 of file 1D1DFunction.C.
QUESO::FuncTimesFunc1D1DFunction::~FuncTimesFunc1D1DFunction | ( | ) |
|
virtual |
TODO: Returns the value of the derivative of the function func1
by another function func2
at the point domainValue
.
Implements QUESO::Base1D1DFunction.
Definition at line 672 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 multiplication of a function func1
by another function func2
at the point domainValue
, i.e. returnValue = func1(domainValue)*func2(domainValue)
.
This function calls the value() method of the both functions and multiplies their return value with one another.
Implements QUESO::Base1D1DFunction.
Definition at line 662 of file 1D1DFunction.C.
References m_func1, m_func2, and QUESO::Base1D1DFunction::value().
Referenced by deriv().
|
protected |
Definition at line 491 of file 1D1DFunction.h.
Referenced by value().
|
protected |
Definition at line 492 of file 1D1DFunction.h.
Referenced by value().