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

Method test_1D_array

numpy/lib/tests/test_shape_base.py:582–586  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

580 pass
581
582 def test_1D_array(self):
583 a = np.array([1, 2, 3, 4])
584 res = hsplit(a, 2)
585 desired = [np.array([1, 2]), np.array([3, 4])]
586 compare_results(res, desired)
587
588 def test_2D_array(self):
589 a = np.array([[1, 2, 3, 4],

Callers

nothing calls this directly

Calls 2

hsplitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected