aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/CwiseNullaryOp.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-17 14:30:01 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-17 14:30:01 +0000
commit89f468671dea2cc1dc37cdf75bbc7c7e56749bac (patch)
tree6c8b704fedcb168e2db20523d99dd061aabd2e88 /Eigen/src/Core/CwiseNullaryOp.h
parent2110cca4313ebb902ca1f4f6ff0c389f743e60fc (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/CwiseNullaryOp.h')
-rw-r--r--Eigen/src/Core/CwiseNullaryOp.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Eigen/src/Core/CwiseNullaryOp.h b/Eigen/src/Core/CwiseNullaryOp.h
index fb63ad4fd..32cc12d4e 100644
--- a/Eigen/src/Core/CwiseNullaryOp.h
+++ b/Eigen/src/Core/CwiseNullaryOp.h
@@ -236,8 +236,8 @@ template<typename Derived>
bool MatrixBase<Derived>::isApproxToConstant
(const Scalar& value, RealScalar prec) const
{
- 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(!ei_isApprox(coeff(i, j), value, prec))
return false;
return true;
@@ -330,8 +330,8 @@ template<typename Derived>
bool MatrixBase<Derived>::isZero
(RealScalar prec) const
{
- 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(!ei_isMuchSmallerThan(coeff(i, j), static_cast<Scalar>(1), prec))
return false;
return true;
@@ -499,9 +499,9 @@ template<typename Derived>
bool MatrixBase<Derived>::isIdentity
(RealScalar prec) const
{
- for(int j = 0; j < cols(); j++)
+ for(int j = 0; j < cols(); ++j)
{
- for(int i = 0; i < rows(); i++)
+ for(int i = 0; i < rows(); ++i)
{
if(i == j)
{
@@ -534,7 +534,7 @@ struct ei_setIdentity_impl<Derived, true>
{
m.setZero();
const int size = std::min(m.rows(), m.cols());
- for(int i = 0; i < size; i++) m.coeffRef(i,i) = typename Derived::Scalar(1);
+ for(int i = 0; i < size; ++i) m.coeffRef(i,i) = typename Derived::Scalar(1);
return m;
}
};