queso-0.57.1
|
Class for multiplication of a one-dimensional function by a scalar. More...
#include <1D1DFunction.h>
Public Member Functions | |
Constructor/Destructor methods | |
ScalarTimesFunc1D1DFunction (double scalar, const Base1D1DFunction &func) | |
Default constructor. More... | |
~ScalarTimesFunc1D1DFunction () | |
Destructor. More... | |
Mathematical methods | |
double | value (double domainValue) const |
Returns the value of the (one-dimensional) function at point domainValue , already multiplied by the scalar (given during construction). More... | |
double | deriv (double domainValue) const |
TODO: Returns the value of the derivative of the function multiplied by the given scalar 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_scalar |
const Base1D1DFunction & | m_func |
Protected Attributes inherited from QUESO::Base1D1DFunction | |
double | m_minDomainValue |
double | m_maxDomainValue |
Class for multiplication of a one-dimensional function by a scalar.
This class implements the multiplication of a generic one-dimensional function (implemented through any class derived from Base1D1DFunction) by a given scalar.
Definition at line 421 of file 1D1DFunction.h.
QUESO::ScalarTimesFunc1D1DFunction::ScalarTimesFunc1D1DFunction | ( | double | scalar, |
const Base1D1DFunction & | func | ||
) |
Default constructor.
Definition at line 599 of file 1D1DFunction.C.
QUESO::ScalarTimesFunc1D1DFunction::~ScalarTimesFunc1D1DFunction | ( | ) |
|
virtual |
TODO: Returns the value of the derivative of the function multiplied by the given scalar at point domainValue
.
Implements QUESO::Base1D1DFunction.
Definition at line 624 of file 1D1DFunction.C.
References QUESO::Base1D1DFunction::m_maxDomainValue, QUESO::Base1D1DFunction::m_minDomainValue, and value().
|
virtual |
Returns the value of the (one-dimensional) function at point domainValue
, already multiplied by the scalar (given during construction).
This function calls the value() method of the given function and multiplies its return value by the scalar passed to the constructor.
Implements QUESO::Base1D1DFunction.
Definition at line 614 of file 1D1DFunction.C.
References m_func, m_scalar, and QUESO::Base1D1DFunction::value().
Referenced by deriv().
|
protected |
Definition at line 449 of file 1D1DFunction.h.
Referenced by value().
|
protected |
Definition at line 448 of file 1D1DFunction.h.
Referenced by value().