From 729618c945aaf5183316abd1badc4921cecd86f1 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 26 Mar 2008 08:48:04 +0000 Subject: * #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(). --- Eigen/src/Core/Visitor.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Eigen/src/Core/Visitor.h') diff --git a/Eigen/src/Core/Visitor.h b/Eigen/src/Core/Visitor.h index d5b6fb167..7e3a7b819 100644 --- a/Eigen/src/Core/Visitor.h +++ b/Eigen/src/Core/Visitor.h @@ -82,13 +82,12 @@ void MatrixBase::visit(Visitor& visitor) const SizeAtCompileTime : Dynamic>::run(derived(), visitor); else { - Scalar res; visitor.init(coeff(0,0), 0, 0); for(int i = 1; i < rows(); i++) - visitor(res, coeff(i, 0), i, 0); + visitor(coeff(i, 0), i, 0); for(int j = 1; j < cols(); j++) for(int i = 0; i < rows(); i++) - visitor(res, coeff(i, j), i, j); + visitor(coeff(i, j), i, j); } } -- cgit v1.2.3