diff options
author | Chen-Pang He <jdh8@ms63.hinet.net> | 2013-07-10 02:48:17 +0800 |
---|---|---|
committer | Chen-Pang He <jdh8@ms63.hinet.net> | 2013-07-10 02:48:17 +0800 |
commit | d204bb57d04e1d106c33790407ee4727e0f9816b (patch) | |
tree | 5ac4d7f2c38d96df4217dec98e78765b77163278 /unsupported | |
parent | c52cbd9de95553f2f8c7a9020903081db719573c (diff) |
Remove unused struct definition in test.
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/test/matrix_power.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/unsupported/test/matrix_power.cpp b/unsupported/test/matrix_power.cpp index b9d513b45..38b16fba9 100644 --- a/unsupported/test/matrix_power.cpp +++ b/unsupported/test/matrix_power.cpp @@ -9,33 +9,6 @@ #include "matrix_functions.h" -template <typename MatrixType, int IsComplex = NumTraits<typename MatrixType::Scalar>::IsComplex> -struct generateTriangularMatrix; - -// for real matrices, make sure none of the eigenvalues are negative -template <typename MatrixType> -struct generateTriangularMatrix<MatrixType,0> -{ - static void run(MatrixType& result, typename MatrixType::Index size) - { - result.resize(size, size); - result.template triangularView<Upper>() = MatrixType::Random(size, size); - for (typename MatrixType::Index i = 0; i < size; ++i) - result.coeffRef(i,i) = std::abs(result.coeff(i,i)); - } -}; - -// for complex matrices, any matrix is fine -template <typename MatrixType> -struct generateTriangularMatrix<MatrixType,1> -{ - static void run(MatrixType& result, typename MatrixType::Index size) - { - result.resize(size, size); - result.template triangularView<Upper>() = MatrixType::Random(size, size); - } -}; - template<typename T> void test2dRotation(double tol) { |