From 899c0c2b6c723b4b6e324fd8c157e53039c54f67 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 10 Apr 2013 22:27:35 +0200 Subject: Clean source code and unit tests with respect to -Wunused-local-typedefs --- test/inverse.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/inverse.cpp') 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 void inverse(const MatrixType& m) Index cols = m.cols(); typedef typename MatrixType::Scalar Scalar; - typedef typename NumTraits::Real RealScalar; - typedef Matrix VectorType; MatrixType m1(rows, cols), m2(rows, cols), @@ -43,6 +41,9 @@ template 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::Real RealScalar; + typedef Matrix VectorType; + //computeInverseAndDetWithCheck tests //First: an invertible matrix bool invertible; -- cgit v1.2.3