MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_sparse

Function test_sparse

tests/test_eigen_matrix.py:753–760  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

751
752
753def test_sparse():
754 pytest.importorskip("scipy")
755 assert_sparse_equal_ref(m.sparse_r())
756 assert_sparse_equal_ref(m.sparse_c())
757 assert_sparse_equal_ref(m.sparse_copy_r(m.sparse_r()))
758 assert_sparse_equal_ref(m.sparse_copy_c(m.sparse_c()))
759 assert_sparse_equal_ref(m.sparse_copy_r(m.sparse_c()))
760 assert_sparse_equal_ref(m.sparse_copy_c(m.sparse_r()))
761
762
763def test_sparse_signature(doc):

Callers

nothing calls this directly

Calls 1

assert_sparse_equal_refFunction · 0.85

Tested by

no test coverage detected