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

Method test_simple

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

Source from the content-addressed store, hash-verified

2767class TestMeshgrid:
2768
2769 def test_simple(self):
2770 [X, Y] = meshgrid([1, 2, 3], [4, 5, 6, 7])
2771 assert_array_equal(X, np.array([[1, 2, 3],
2772 [1, 2, 3],
2773 [1, 2, 3],
2774 [1, 2, 3]]))
2775 assert_array_equal(Y, np.array([[4, 4, 4],
2776 [5, 5, 5],
2777 [6, 6, 6],
2778 [7, 7, 7]]))
2779
2780 def test_single_input(self):
2781 [X] = meshgrid([1, 2, 3, 4])

Callers

nothing calls this directly

Calls 2

meshgridFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected