diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-08-11 17:52:43 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-08-11 17:52:43 +0200 |
commit | 6719e56b5bfe9ae4badc9a6e894c5824f663d62e (patch) | |
tree | 975a7bb2e9f1bf605814309fc7120cdb097b29ca /unsupported/Eigen/src/AutoDiff | |
parent | c13e9bbabf885abad49aafb77535192262355448 (diff) |
Ref<> objects must be nested by reference because they potentially store a temporary object
Diffstat (limited to 'unsupported/Eigen/src/AutoDiff')
-rw-r--r-- | unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h index 8d42e69b9..763ed414a 100644 --- a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +++ b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h @@ -604,7 +604,7 @@ atan2(const AutoDiffScalar<DerTypeA>& a, const AutoDiffScalar<DerTypeB>& b) Scalar tmp4 = tmp3/(tmp2+tmp3); if (tmp4!=0) - ret.derivatives() = (a.derivatives() * b.value() - a.value() * b.derivatives()) * (tmp2+tmp3); + ret.derivatives() = (a.value() * b.derivatives() - a.derivatives() * b.value()) * (tmp2+tmp3); return ret; } |