aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/inverse.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-06-09 09:11:12 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-06-09 09:11:12 +0200
commit9a2447b0c95bb62bd3e5ae68bf14d2c5e66a18cf (patch)
tree40712813d830e39c1e8e5b32be7c46abf4c90695 /test/inverse.cpp
parentcd8b996f99de67035a0504cbaf0a627fb68f0f1d (diff)
Fix shadow warnings triggered by clang
Diffstat (limited to 'test/inverse.cpp')
-rw-r--r--test/inverse.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/inverse.cpp b/test/inverse.cpp
index b09989aca..5c6777a18 100644
--- a/test/inverse.cpp
+++ b/test/inverse.cpp
@@ -71,11 +71,11 @@ template<typename MatrixType> void inverse(const MatrixType& m)
// check with submatrices
{
- Matrix<Scalar, MatrixType::RowsAtCompileTime+1, MatrixType::RowsAtCompileTime+1, MatrixType::Options> m3;
- m3.setRandom();
- m3.topLeftCorner(rows,rows) = m1;
- m2 = m3.template topLeftCorner<MatrixType::RowsAtCompileTime,MatrixType::ColsAtCompileTime>().inverse();
- VERIFY_IS_APPROX( (m3.template topLeftCorner<MatrixType::RowsAtCompileTime,MatrixType::ColsAtCompileTime>()), m2.inverse() );
+ Matrix<Scalar, MatrixType::RowsAtCompileTime+1, MatrixType::RowsAtCompileTime+1, MatrixType::Options> m5;
+ m5.setRandom();
+ m5.topLeftCorner(rows,rows) = m1;
+ m2 = m5.template topLeftCorner<MatrixType::RowsAtCompileTime,MatrixType::ColsAtCompileTime>().inverse();
+ VERIFY_IS_APPROX( (m5.template topLeftCorner<MatrixType::RowsAtCompileTime,MatrixType::ColsAtCompileTime>()), m2.inverse() );
}
#endif