queso-0.57.1
|
A class for handling scalar functions which image is a constant (real number). More...
#include <ConstantScalarFunction.h>
Public Member Functions | |
Constructor/Destructor methods | |
ConstantScalarFunction (const char *prefix, const VectorSet< V, M > &domainSet, double constantValue) | |
Default constructor. More... | |
virtual | ~ConstantScalarFunction () |
Virtual destructor. More... | |
Mathematical method | |
double | actualValue (const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const |
Calculates the actual value of this scalar function. More... | |
double | lnValue (const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const |
Calculates the logarithm of the value of this scalar function (which is zero). More... | |
Public Member Functions inherited from QUESO::BaseScalarFunction< V, M > | |
void | setFiniteDifferenceStepSize (double fdStepSize) |
Sets the step size for finite differencing gradients. More... | |
void | setFiniteDifferenceStepSize (unsigned int i, double fdStepSize) |
BaseScalarFunction (const char *prefix, const VectorSet< V, M > &domainSet) | |
Default constructor. More... | |
virtual | ~BaseScalarFunction () |
Destructor. More... | |
const VectorSet< V, M > & | domainSet () const |
Access to the protected attribute m_domainSet: domain set of the scalar function. More... | |
virtual double | lnValue (const V &domainVector) const |
Returns the logarithm of the function at domainVector . More... | |
virtual double | lnValue (const V &domainVector, V &gradVector) const |
Returns the logarithm of the function and its gradient at domainVector . More... | |
virtual double | lnValue (const V &domainVector, V &gradVector, const V &domainDirection, V &hessianEffect) const |
Protected Attributes | |
double | m_constantValue |
Constant value is the image set of this scalar function. More... | |
Protected Attributes inherited from QUESO::BaseScalarFunction< V, M > | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSet< V, M > & | m_domainSet |
Domain set of the scalar function. More... | |
A class for handling scalar functions which image is a constant (real number).
This class allows the mathematical definition of a scalar function which image set is a constant (real number).
Definition at line 46 of file ConstantScalarFunction.h.
QUESO::ConstantScalarFunction< V, M >::ConstantScalarFunction | ( | const char * | prefix, |
const VectorSet< V, M > & | domainSet, | ||
double | constantValue | ||
) |
Default constructor.
Instantiates an object of the class, i.e. a scalar function, given a prefix, its domain and constant-valued image.
Definition at line 35 of file ConstantScalarFunction.C.
|
virtual |
|
virtual |
Calculates the actual value of this scalar function.
Implements QUESO::BaseScalarFunction< V, M >.
Definition at line 51 of file ConstantScalarFunction.C.
|
virtual |
Calculates the logarithm of the value of this scalar function (which is zero).
Reimplemented from QUESO::BaseScalarFunction< V, M >.
Definition at line 62 of file ConstantScalarFunction.C.
|
protected |
Constant value is the image set of this scalar function.
Definition at line 72 of file ConstantScalarFunction.h.