25 #ifndef UQ_CONSTANT_SCALAR_FUNCTION_H
26 #define UQ_CONSTANT_SCALAR_FUNCTION_H
28 #include <queso/ScalarFunction.h>
29 #include <queso/VectorSet.h>
30 #include <queso/VectorSubset.h>
31 #include <queso/Environment.h>
32 #include <queso/Defines.h>
42 template<
class V,
class M>
51 double constantValue);
57 double actualValue (
const V& domainVector,
const V* domainDirection, V* gradVector, M* hessianMatrix, V* hessianEffect)
const;
61 double lnValue (
const V& domainVector,
const V* domainDirection, V* gradVector, M* hessianMatrix, V* hessianEffect)
const;
74 #endif // UQ_CONSTANT_SCALAR_FUNCTION_H
A templated class for handling sets.
ConstantScalarFunction(const char *prefix, const VectorSet< V, M > &domainSet, double constantValue)
Default constructor.
double m_constantValue
Constant value is the image set of this scalar function.
virtual ~ConstantScalarFunction()
Virtual destructor.
const VectorSet< V, M > & domainSet() const
Access to the protected attribute m_domainSet: domain set of the scalar function. ...
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).
A class for handling scalar functions which image is a constant (real number).
A templated (base) class for handling scalar functions.
double actualValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const
Calculates the actual value of this scalar function.