diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-04-10 22:27:35 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-04-10 22:27:35 +0200 |
commit | 899c0c2b6c723b4b6e324fd8c157e53039c54f67 (patch) | |
tree | 3ec9470328f8597a03f3ac8a33d3c12c04c0a326 /test/inverse.cpp | |
parent | 7e04d7db029866eab0ff7c2a752edb2905bff61f (diff) |
Clean source code and unit tests with respect to -Wunused-local-typedefs
Diffstat (limited to 'test/inverse.cpp')
-rw-r--r-- | test/inverse.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/inverse.cpp b/test/inverse.cpp index 5544eb671..8978a1877 100644 --- a/test/inverse.cpp +++ b/test/inverse.cpp @@ -22,8 +22,6 @@ template<typename MatrixType> void inverse(const MatrixType& m) Index cols = m.cols(); typedef typename MatrixType::Scalar Scalar; - typedef typename NumTraits<Scalar>::Real RealScalar; - typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType; MatrixType m1(rows, cols), m2(rows, cols), @@ -43,6 +41,9 @@ template<typename MatrixType> void inverse(const MatrixType& m) VERIFY_IS_APPROX(MatrixType(m1.transpose().inverse()), MatrixType(m1.inverse().transpose())); #if !defined(EIGEN_TEST_PART_5) && !defined(EIGEN_TEST_PART_6) + typedef typename NumTraits<Scalar>::Real RealScalar; + typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType; + //computeInverseAndDetWithCheck tests //First: an invertible matrix bool invertible; |