MCPcopy Create free account
hub / github.com/numpy/numpy / test_sparse

Method test_sparse

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

Source from the content-addressed store, hash-verified

2550 assert_raises(ValueError, meshgrid, x, y, indexing='notvalid')
2551
2552 def test_sparse(self):
2553 [X, Y] = meshgrid([1, 2, 3], [4, 5, 6, 7], sparse=True)
2554 assert_array_equal(X, np.array([[1, 2, 3]]))
2555 assert_array_equal(Y, np.array([[4], [5], [6], [7]]))
2556
2557 def test_invalid_arguments(self):
2558 # Test that meshgrid complains about invalid arguments

Callers

nothing calls this directly

Calls 2

meshgridFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected