From f292d2352e0ac9be8a9c5b0d931dc9a2c6da1aa0 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Fri, 29 May 2009 09:09:48 +0200 Subject: [PATCH] Relaxed checks againts _MaxRows and _MaxCols in Matrix::_check_template_params(). --- Eigen/src/Core/Matrix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index d75d61413..b5a90dfdf 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -532,8 +532,8 @@ class Matrix { EIGEN_STATIC_ASSERT(((_Rows >= _MaxRows) && (_Cols >= _MaxCols) - && (_MaxRows >= 1) - && (_MaxCols >= 1) + && (_MaxRows >= 0) + && (_MaxCols >= 0) && (_Rows <= Dynamic) && (_Cols <= Dynamic) && (_MaxRows == _Rows || _Rows==Dynamic)