default argument for _jac in functor operator() : this way, we can use

AutoDiffJacobian::operator()(x,value) exactly as the original functor
This commit is contained in:
Thomas Capricelli 2009-09-28 01:28:48 +02:00
parent 765600458b
commit de942a44c2

View File

@ -56,7 +56,7 @@ public:
typedef Matrix<ActiveScalar, InputsAtCompileTime, 1> ActiveInput;
typedef Matrix<ActiveScalar, ValuesAtCompileTime, 1> ActiveValue;
void operator() (const InputType& x, ValueType* v, JacobianType* _jac) const
void operator() (const InputType& x, ValueType* v, JacobianType* _jac=0) const
{
ei_assert(v!=0);
if (!_jac)