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