aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nomalloc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/nomalloc.cpp')
-rw-r--r--test/nomalloc.cpp9
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>());
}