3#include "CLHEP/GenericFunctions/FunctionDifference.hh"
14 if (arg1->dimensionality()!=arg2->dimensionality()) {
16 <<
"Warning: dimension mismatch in function difference"
25 _arg1(right._arg1->clone()),
26 _arg2(right._arg2->clone())
45 return (*_arg1)(x)-(*_arg2)(x);
50 return (*_arg1)(x)-(*_arg2)(x);
#define FUNCTION_OBJECT_IMP(classname)
virtual Derivative partial(unsigned int) const
virtual unsigned int dimensionality() const
virtual ~FunctionDifference()
FunctionDifference(const AbsFunction *arg1, const AbsFunction *arg2)
virtual unsigned int dimensionality() const override
virtual double operator()(double argument) const override
Derivative partial(unsigned int) const override