MCPcopy Index your code
hub / github.com/numpy/numpy / test_sparse

Method test_sparse

numpy/lib/tests/test_function_base.py:2809–2812  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2807 assert_raises(ValueError, meshgrid, x, y, indexing='notvalid')
2808
2809 def test_sparse(self):
2810 [X, Y] = meshgrid([1, 2, 3], [4, 5, 6, 7], sparse=True)
2811 assert_array_equal(X, np.array([[1, 2, 3]]))
2812 assert_array_equal(Y, np.array([[4], [5], [6], [7]]))
2813
2814 def test_always_tuple(self):
2815 A = meshgrid([1, 2, 3], [4, 5, 6, 7], sparse=True, copy=False)

Callers

nothing calls this directly

Calls 2

meshgridFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected