Relaxed checks againts _MaxRows and _MaxCols in Matrix::_check_template_params().

This commit is contained in:
Hauke Heibel 2009-05-29 09:09:48 +02:00
parent ee92009fd8
commit f292d2352e

View File

@ -532,8 +532,8 @@ class Matrix
{ {
EIGEN_STATIC_ASSERT(((_Rows >= _MaxRows) EIGEN_STATIC_ASSERT(((_Rows >= _MaxRows)
&& (_Cols >= _MaxCols) && (_Cols >= _MaxCols)
&& (_MaxRows >= 1) && (_MaxRows >= 0)
&& (_MaxCols >= 1) && (_MaxCols >= 0)
&& (_Rows <= Dynamic) && (_Rows <= Dynamic)
&& (_Cols <= Dynamic) && (_Cols <= Dynamic)
&& (_MaxRows == _Rows || _Rows==Dynamic) && (_MaxRows == _Rows || _Rows==Dynamic)