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

Method test_simple

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

Source from the content-addressed store, hash-verified

106
107class TestApplyAlongAxis:
108 def test_simple(self):
109 a = np.ones((20, 10), 'd')
110 assert_array_equal(
111 apply_along_axis(len, 0, a), len(a)*np.ones(a.shape[1]))
112
113 def test_simple101(self):
114 a = np.ones((10, 101), 'd')

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
apply_along_axisFunction · 0.90

Tested by

no test coverage detected