diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-12-16 17:34:13 +0100 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-12-16 17:34:13 +0100 |
commit | f578dc7affb91107e0f6218a846ec062f1b8dc46 (patch) | |
tree | 6c11d905599c89a2709d8186a5575a6a9be9daf6 /Eigen/src/Core/ArrayBase.h | |
parent | dbfb53e8ef988907599241012467f7d730f1c345 (diff) |
Fixed compound subtraction in ArrayBase where the assignment needs to be carried out on the derived type.
Added unit tests for map based component wise arithmetic.
Diffstat (limited to 'Eigen/src/Core/ArrayBase.h')
-rw-r--r-- | Eigen/src/Core/ArrayBase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/ArrayBase.h b/Eigen/src/Core/ArrayBase.h index 40a6fc8bb..394f09958 100644 --- a/Eigen/src/Core/ArrayBase.h +++ b/Eigen/src/Core/ArrayBase.h @@ -186,7 +186,7 @@ EIGEN_STRONG_INLINE Derived & ArrayBase<Derived>::operator-=(const ArrayBase<OtherDerived> &other) { SelfCwiseBinaryOp<internal::scalar_difference_op<Scalar>, Derived, OtherDerived> tmp(derived()); - tmp = other; + tmp = other.derived(); return derived(); } |