From ac66f1c73dc7126e58dd8ca78baed34926bd9610 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 26 May 2015 10:44:37 +0200 Subject: [PATCH] Fix usage of EIGEN_NO_AUTOMATIC_RESIZING: resizing still has to be performed for a non-initialized object (was already fixed in devel branch) --- Eigen/src/Core/PlainObjectBase.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h index dd34b59e5..8a3e4545a 100644 --- a/Eigen/src/Core/PlainObjectBase.h +++ b/Eigen/src/Core/PlainObjectBase.h @@ -573,6 +573,8 @@ class PlainObjectBase : public internal::dense_xpr_base::type : (rows() == other.rows() && cols() == other.cols()))) && "Size mismatch. Automatic resizing is disabled because EIGEN_NO_AUTOMATIC_RESIZING is defined"); EIGEN_ONLY_USED_FOR_DEBUG(other); + if(this->size()==0) + resizeLike(other); #else resizeLike(other); #endif