diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-03-26 08:48:04 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-03-26 08:48:04 +0000 |
commit | 729618c945aaf5183316abd1badc4921cecd86f1 (patch) | |
tree | 99b44a2974698f622180721334f1f1c07d91423e /Eigen/src/Core/Fuzzy.h | |
parent | 4342f024d9937beaff70635d2e2cb1ad6574bf72 (diff) |
* #define EIGEN_NDEBUG now also disables asserts. Useful
to disable eigen's asserts without disabling one's own program's
asserts. Notice that Eigen code should now use ei_assert()
instead of assert().
* Remove findBiggestCoeff() as it's now almost redundant.
* Improve echelon.cpp: inner for loop replaced by xprs.
* remove useless "(*this)." here and there. I think they were
first introduced by automatic search&replace.
* fix compilation in Visitor.h (issue triggered by echelon.cpp)
* improve comment on swap().
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); |