MCPcopy Create free account
hub / github.com/Derious/cuMPC / bug1105

Function bug1105

dependence/eigen-3.4.0/test/sparse_basic.cpp:711–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

709
710template<int>
711void 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

Callers

nothing calls this directly

Calls 3

coeffRefMethod · 0.45
allocatedSizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected