Lines Matching full:functor
25 * This class allows you to add a method df() to your functor, which will
27 * derivative for the functor. Of course, if you have an analytical form
39 typedef _Functor Functor;
40 typedef typename Functor::Scalar Scalar;
41 typedef typename Functor::InputType InputType;
42 typedef typename Functor::ValueType ValueType;
43 typedef typename Functor::JacobianType JacobianType;
45 NumericalDiff(Scalar _epsfcn=0.) : Functor(), epsfcn(_epsfcn) {}
46 NumericalDiff(const Functor& f, Scalar _epsfcn=0.) : Functor(f), epsfcn(_epsfcn) {}
50 NumericalDiff(const T0& a0) : Functor(a0), epsfcn(0) {}
52 NumericalDiff(const T0& a0, const T1& a1) : Functor(a0, a1), epsfcn(0) {}
54 NumericalDiff(const T0& a0, const T1& a1, const T2& a2) : Functor(a0, a1, a2), epsfcn(0) {}
57 InputsAtCompileTime = Functor::InputsAtCompileTime,
58 ValuesAtCompileTime = Functor::ValuesAtCompileTime
62 * return the number of evaluation of functor
76 val1.resize(Functor::values());
77 val2.resize(Functor::values());
83 Functor::operator()(x, val1); nfev++;
101 Functor::operator()(x, val2);
108 Functor::operator()(x, val2); nfev++;
110 Functor::operator()(x, val1); nfev++;