aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/NoAlias.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-12-13 18:06:58 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-12-13 18:06:58 +0100
commite94fe4cc3e371f37b39f7b5f824cd3acc74af823 (patch)
tree362223c40e489233f11a13b2a859212822c4bb49 /Eigen/src/Core/NoAlias.h
parent2ca0ccd2f2a88e7bae3c502ec2082178506a3d81 (diff)
fix resizing in noalias for blocks, and make -=/+= use evaluators
Diffstat (limited to 'Eigen/src/Core/NoAlias.h')
-rw-r--r--Eigen/src/Core/NoAlias.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/NoAlias.h b/Eigen/src/Core/NoAlias.h
index 3c9c951f0..412e37258 100644
--- a/Eigen/src/Core/NoAlias.h
+++ b/Eigen/src/Core/NoAlias.h
@@ -41,7 +41,7 @@ class NoAlias
EIGEN_STRONG_INLINE ExpressionType& operator=(const StorageBase<OtherDerived>& other)
{
// TODO either call resize here or call "call_assignment" through m_expression.lazyAssign() ??
- m_expression.resizeLike(other.derived());
+ m_expression.resize(other.derived().rows(), other.derived().cols());
call_assignment(*this, other.derived(), internal::assign_op<Scalar>());
return m_expression;
}