| 549 | } |
| 550 | |
| 551 | void test_sparse_basic() |
| 552 | { |
| 553 | for(int i = 0; i < g_repeat; i++) { |
| 554 | int s = Eigen::internal::random<int>(1,50); |
| 555 | EIGEN_UNUSED_VARIABLE(s); |
| 556 | CALL_SUBTEST_1(( sparse_basic(SparseMatrix<double>(8, 8)) )); |
| 557 | CALL_SUBTEST_2(( sparse_basic(SparseMatrix<std::complex<double>, ColMajor>(s, s)) )); |
| 558 | CALL_SUBTEST_2(( sparse_basic(SparseMatrix<std::complex<double>, RowMajor>(s, s)) )); |
| 559 | CALL_SUBTEST_1(( sparse_basic(SparseMatrix<double>(s, s)) )); |
| 560 | CALL_SUBTEST_1(( sparse_basic(SparseMatrix<double,ColMajor,long int>(s, s)) )); |
| 561 | CALL_SUBTEST_1(( sparse_basic(SparseMatrix<double,RowMajor,long int>(s, s)) )); |
| 562 | |
| 563 | CALL_SUBTEST_1(( sparse_basic(SparseMatrix<double,ColMajor,short int>(short(s), short(s))) )); |
| 564 | CALL_SUBTEST_1(( sparse_basic(SparseMatrix<double,RowMajor,short int>(short(s), short(s))) )); |
| 565 | } |
| 566 | } |
nothing calls this directly
no test coverage detected