diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-03 07:37:12 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-03 08:13:09 +0200 |
| commit | 88534ba623421c956d8ffcda2d27f41d704d15ef (patch) | |
| tree | fccc55245aec3f7381cd525a1355568e10ea37f4 /eigen/unsupported/test/sparse_extra.cpp | |
| parent | 3ee09beb3f0458fbeb0b0e816f854b9d5b406e6b (diff) | |
update eigen
Diffstat (limited to 'eigen/unsupported/test/sparse_extra.cpp')
| -rw-r--r-- | eigen/unsupported/test/sparse_extra.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/eigen/unsupported/test/sparse_extra.cpp b/eigen/unsupported/test/sparse_extra.cpp index 4f6723d..a010ceb 100644 --- a/eigen/unsupported/test/sparse_extra.cpp +++ b/eigen/unsupported/test/sparse_extra.cpp @@ -129,19 +129,6 @@ template<typename SparseMatrixType> void sparse_extra(const SparseMatrixType& re } -template<typename SparseMatrixType> -void check_marketio() -{ - typedef Matrix<typename SparseMatrixType::Scalar, Dynamic, Dynamic> DenseMatrix; - Index rows = internal::random<Index>(1,100); - Index cols = internal::random<Index>(1,100); - SparseMatrixType m1, m2; - m1 = DenseMatrix::Random(rows, cols).sparseView(); - saveMarket(m1, "sparse_extra.mtx"); - loadMarket(m2, "sparse_extra.mtx"); - VERIFY_IS_EQUAL(DenseMatrix(m1),DenseMatrix(m2)); -} - void test_sparse_extra() { for(int i = 0; i < g_repeat; i++) { @@ -156,15 +143,5 @@ void test_sparse_extra() CALL_SUBTEST_3( (sparse_product<DynamicSparseMatrix<float, ColMajor> >()) ); CALL_SUBTEST_3( (sparse_product<DynamicSparseMatrix<float, RowMajor> >()) ); - - CALL_SUBTEST_4( (check_marketio<SparseMatrix<float,ColMajor,int> >()) ); - CALL_SUBTEST_4( (check_marketio<SparseMatrix<double,ColMajor,int> >()) ); - CALL_SUBTEST_4( (check_marketio<SparseMatrix<std::complex<float>,ColMajor,int> >()) ); - CALL_SUBTEST_4( (check_marketio<SparseMatrix<std::complex<double>,ColMajor,int> >()) ); - CALL_SUBTEST_4( (check_marketio<SparseMatrix<float,ColMajor,long int> >()) ); - CALL_SUBTEST_4( (check_marketio<SparseMatrix<double,ColMajor,long int> >()) ); - CALL_SUBTEST_4( (check_marketio<SparseMatrix<std::complex<float>,ColMajor,long int> >()) ); - CALL_SUBTEST_4( (check_marketio<SparseMatrix<std::complex<double>,ColMajor,long int> >()) ); - TEST_SET_BUT_UNUSED_VARIABLE(s); } } |
