mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 12:19:12 +08:00
fix the static assert checking the size template parameters.
This commit is contained in:
parent
4d1e492c00
commit
86be59124d
@ -530,8 +530,14 @@ class Matrix
|
|||||||
|
|
||||||
static EIGEN_STRONG_INLINE void _check_template_params()
|
static EIGEN_STRONG_INLINE void _check_template_params()
|
||||||
{
|
{
|
||||||
EIGEN_STATIC_ASSERT(((_MaxRows >= _Rows || _Rows==Dynamic)
|
EIGEN_STATIC_ASSERT(((_Rows >= _MaxRows)
|
||||||
&& (_MaxCols >= _Cols || _Cols==Dynamic)
|
&& (_Cols >= _MaxCols)
|
||||||
|
&& (_MaxRows >= 1)
|
||||||
|
&& (_MaxCols >= 1)
|
||||||
|
&& (_Rows <= Dynamic)
|
||||||
|
&& (_Cols <= Dynamic)
|
||||||
|
&& (_MaxRows == _Rows || _Rows==Dynamic)
|
||||||
|
&& (_MaxCols == _Cols || _Cols==Dynamic)
|
||||||
&& ((_MaxRows==Dynamic?1:_MaxRows)*(_MaxCols==Dynamic?1:_MaxCols)<Dynamic)
|
&& ((_MaxRows==Dynamic?1:_MaxRows)*(_MaxCols==Dynamic?1:_MaxCols)<Dynamic)
|
||||||
&& (_Options & (DontAlign|RowMajor)) == _Options),
|
&& (_Options & (DontAlign|RowMajor)) == _Options),
|
||||||
INVALID_MATRIX_TEMPLATE_PARAMETERS)
|
INVALID_MATRIX_TEMPLATE_PARAMETERS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user