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

Method test_simple

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

Source from the content-addressed store, hash-verified

272
273class TestApplyOverAxes:
274 def test_simple(self):
275 a = np.arange(24).reshape(2, 3, 4)
276 aoa_a = apply_over_axes(np.sum, a, [0, 2])
277 assert_array_equal(aoa_a, np.array([[[60], [92], [124]]]))
278
279
280class TestExpandDims:

Callers

nothing calls this directly

Calls 3

apply_over_axesFunction · 0.90
assert_array_equalFunction · 0.90
reshapeMethod · 0.80

Tested by

no test coverage detected