mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-23 18:20:47 +08:00
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:
parent
765600458b
commit
de942a44c2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user