aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Zero.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/Zero.h')
-rw-r--r--Eigen/src/Core/Zero.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/Zero.h b/Eigen/src/Core/Zero.h
index 97bb8b9e9..33792f0b1 100644
--- a/Eigen/src/Core/Zero.h
+++ b/Eigen/src/Core/Zero.h
@@ -65,7 +65,7 @@ template<typename MatrixType> class Zero : ei_no_assignment_operator,
Zero(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));
@@ -115,7 +115,7 @@ const Zero<Derived> MatrixBase<Derived>::zero(int rows, int cols)
template<typename Derived>
const Zero<Derived> MatrixBase<Derived>::zero(int size)
{
- assert(IsVectorAtCompileTime);
+ ei_assert(IsVectorAtCompileTime);
if(RowsAtCompileTime == 1) return Zero<Derived>(1, size);
else return Zero<Derived>(size, 1);
}