aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Thomas Capricelli <orzel@freehackers.org>2009-09-28 01:28:48 +0200
committerGravatar Thomas Capricelli <orzel@freehackers.org>2009-09-28 01:28:48 +0200
commitde942a44c2459a19a12b0b6309cbc226867ea691 (patch)
tree4923bffc7bf0ef37135fada0d13e1fc96e7255e6 /unsupported
parent765600458bb82422a3f720b6080a3d22e65a2a5e (diff)
default argument for _jac in functor operator() : this way, we can use
AutoDiffJacobian::operator()(x,value) exactly as the original functor
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h b/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h
index 0feb577df..d42197345 100644
--- a/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h
+++ b/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h
@@ -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)