aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-12-16 17:34:13 +0100
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-12-16 17:34:13 +0100
commitf578dc7affb91107e0f6218a846ec062f1b8dc46 (patch)
tree6c11d905599c89a2709d8186a5575a6a9be9daf6 /Eigen/src
parentdbfb53e8ef988907599241012467f7d730f1c345 (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')
-rw-r--r--Eigen/src/Core/ArrayBase.h2
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();
}