diff options
Diffstat (limited to 'Eigen/src/Core/Fuzzy.h')
-rw-r--r-- | Eigen/src/Core/Fuzzy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/Fuzzy.h b/Eigen/src/Core/Fuzzy.h index 0f601a8f5..4ebe9d2a7 100644 --- a/Eigen/src/Core/Fuzzy.h +++ b/Eigen/src/Core/Fuzzy.h @@ -48,7 +48,7 @@ bool MatrixBase<Derived>::isApprox( typename NumTraits<Scalar>::Real prec ) const { - assert(rows() == other.rows() && cols() == other.cols()); + ei_assert(rows() == other.rows() && cols() == other.cols()); if(IsVectorAtCompileTime) { return((*this - other).norm2() <= std::min(norm2(), other.norm2()) * prec * prec); @@ -109,7 +109,7 @@ bool MatrixBase<Derived>::isMuchSmallerThan( typename NumTraits<Scalar>::Real prec ) const { - assert(rows() == other.rows() && cols() == other.cols()); + ei_assert(rows() == other.rows() && cols() == other.cols()); if(IsVectorAtCompileTime) { return(norm2() <= other.norm2() * prec * prec); |