7 #include "GeoGenericFunctions/FixedConstant.h" 11 FUNCTION_OBJECT_IMP(FixedConstant)
13 FixedConstant::FixedConstant(
double value):
18 FixedConstant::FixedConstant(
const FixedConstant & right):
19 AbsFunction(right), _value(right._value) {
22 FixedConstant::~FixedConstant()
26 double FixedConstant::operator ()(
double)
const 31 Derivative FixedConstant::partial(
unsigned int index)
const {
32 if (index!=0)
throw std::range_error(
"FixedConstant: partial derivative index out of range");
33 FixedConstant fPrime(0.0);
34 return Derivative(&fPrime);