diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-07-04 15:35:21 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-07-04 15:35:21 +0200 |
commit | 8a38047ec5c16a35a6dc2370e74a5b2fa5f4f1a6 (patch) | |
tree | f7da7f694a12369423a09d4affee7d1ba182175d /test/nomalloc.cpp | |
parent | c201aabf3ecf4ebc8fcfeed5769dbad218b65cb1 (diff) |
fix nomalloc_2 issues with ICC and gcc 4.0.1 (and speed up compilation ;) )
Diffstat (limited to 'test/nomalloc.cpp')
-rw-r--r-- | test/nomalloc.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/nomalloc.cpp b/test/nomalloc.cpp index 23162f2f9..c1965a8ac 100644 --- a/test/nomalloc.cpp +++ b/test/nomalloc.cpp @@ -78,22 +78,23 @@ template<typename MatrixType> void nomalloc(const MatrixType& m) } } +template<typename Scalar> void ctms_decompositions() { const int maxSize = 16; const int size = 12; - typedef Eigen::Matrix<float, + typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic, 0, maxSize, maxSize> Matrix; - typedef Eigen::Matrix<float, + typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1, 0, maxSize, 1> Vector; - typedef Eigen::Matrix<std::complex<float>, + typedef Eigen::Matrix<std::complex<Scalar>, Eigen::Dynamic, Eigen::Dynamic, 0, maxSize, maxSize> ComplexMatrix; @@ -137,6 +138,6 @@ void test_nomalloc() CALL_SUBTEST_3(nomalloc(Matrix<float,32,32>()) ); // Check decomposition modules with dynamic matrices that have a known compile-time max size (ctms) - CALL_SUBTEST_4(ctms_decompositions()); + CALL_SUBTEST_4(ctms_decompositions<float>()); } |