queso-0.53.0
|
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 > | |
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... | |
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).
Implements 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.