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/Array | |
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/Array')
-rw-r--r-- | Eigen/src/Array/AllAndAny.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Array/AllAndAny.h b/Eigen/src/Array/AllAndAny.h index cc4560b2f..ac2760f1a 100644 --- a/Eigen/src/Array/AllAndAny.h +++ b/Eigen/src/Array/AllAndAny.h @@ -99,8 +99,8 @@ inline bool MatrixBase<Derived>::all(void) const >::run(derived()); else { - for(int j = 0; j < cols(); j++) - for(int i = 0; i < rows(); i++) + for(int j = 0; j < cols(); ++j) + for(int i = 0; i < rows(); ++i) if (!coeff(i, j)) return false; return true; } @@ -123,8 +123,8 @@ inline bool MatrixBase<Derived>::any(void) const >::run(derived()); else { - for(int j = 0; j < cols(); j++) - for(int i = 0; i < rows(); i++) + for(int j = 0; j < cols(); ++j) + for(int i = 0; i < rows(); ++i) if (coeff(i, j)) return true; return false; } |