diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-12-17 14:30:01 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-12-17 14:30:01 +0000 |
commit | 89f468671dea2cc1dc37cdf75bbc7c7e56749bac (patch) | |
tree | 6c8b704fedcb168e2db20523d99dd061aabd2e88 /Eigen/src/Core/Visitor.h | |
parent | 2110cca4313ebb902ca1f4f6ff0c389f743e60fc (diff) |
* replace postfix ++ by prefix ++ wherever that makes sense in Eigen/
* fix some "unused variable" warnings in the tests; there remains a libstdc++ "deprecated"
warning which I haven't looked much into
Diffstat (limited to 'Eigen/src/Core/Visitor.h')
-rw-r--r-- | Eigen/src/Core/Visitor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/Visitor.h b/Eigen/src/Core/Visitor.h index 041aa9445..a9ef5c861 100644 --- a/Eigen/src/Core/Visitor.h +++ b/Eigen/src/Core/Visitor.h @@ -55,10 +55,10 @@ struct ei_visitor_impl<Visitor, Derived, Dynamic> inline static void run(const Derived& mat, Visitor& visitor) { visitor.init(mat.coeff(0,0), 0, 0); - for(int i = 1; i < mat.rows(); i++) + for(int i = 1; i < mat.rows(); ++i) visitor(mat.coeff(i, 0), i, 0); - for(int j = 1; j < mat.cols(); j++) - for(int i = 0; i < mat.rows(); i++) + for(int j = 1; j < mat.cols(); ++j) + for(int i = 0; i < mat.rows(); ++i) visitor(mat.coeff(i, j), i, j); } }; |