MCPcopy
hub / github.com/numpy/numpy / test_simple

Method test_simple

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

Source from the content-addressed store, hash-verified

301
302class TestApplyOverAxes:
303 def test_simple(self):
304 a = np.arange(24).reshape(2, 3, 4)
305 aoa_a = apply_over_axes(np.sum, a, [0, 2])
306 assert_array_equal(aoa_a, np.array([[[60], [92], [124]]]))
307
308
309class 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