25 #include <queso/VectorSet.h>
26 #include <queso/VectorSubset.h>
27 #include <queso/Environment.h>
28 #include <queso/Defines.h>
29 #include <queso/ConstantScalarFunction.h>
34 template<
class V,
class M>
39 m_constantValue(constantValue)
44 template<
class V,
class M>
50 template<
class V,
class M>
52 const V* domainDirection,
55 V* hessianEffect)
const
57 return m_constantValue;
61 template<
class V,
class M>
63 const V* domainDirection,
66 V* hessianEffect)
const
A templated class for handling sets.
double actualValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const
Calculates the actual value of this scalar function.
A templated (base) class for handling scalar functions.
ConstantScalarFunction(const char *prefix, const VectorSet< V, M > &domainSet, double constantValue)
Default constructor.
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).
virtual ~ConstantScalarFunction()
Virtual destructor.