| 709 | |
| 710 | template<int> |
| 711 | void bug1105() |
| 712 | { |
| 713 | // Regression test for bug 1105 |
| 714 | int n = Eigen::internal::random<int>(200,600); |
| 715 | SparseMatrix<std::complex<double>,0, long> mat(n, n); |
| 716 | std::complex<double> val; |
| 717 | |
| 718 | for(int i=0; i<n; ++i) |
| 719 | { |
| 720 | mat.coeffRef(i, i%(n/10)) = val; |
| 721 | VERIFY(mat.data().allocatedSize()<20*n); |
| 722 | } |
| 723 | } |
| 724 | |
| 725 | #ifndef EIGEN_SPARSE_TEST_INCLUDED_FROM_SPARSE_EXTRA |
| 726 |
nothing calls this directly
no test coverage detected