diff options
Diffstat (limited to 'Eigen/src/Core/Identity.h')
-rw-r--r-- | Eigen/src/Core/Identity.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/Identity.h b/Eigen/src/Core/Identity.h index 129786e4b..0b39a4274 100644 --- a/Eigen/src/Core/Identity.h +++ b/Eigen/src/Core/Identity.h @@ -52,7 +52,7 @@ template<typename MatrixType> class Identity : ei_no_assignment_operator, Identity(int rows, int cols) : m_rows(rows), m_cols(cols) { - assert(rows > 0 + ei_assert(rows > 0 && (RowsAtCompileTime == Dynamic || RowsAtCompileTime == rows) && cols > 0 && (ColsAtCompileTime == Dynamic || ColsAtCompileTime == cols)); |