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

Method test_3d

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

Source from the content-addressed store, hash-verified

145 apply_along_axis(len, 0, a), len(a) * np.ones(a.shape[1]))
146
147 def test_3d(self):
148 a = np.arange(27).reshape((3, 3, 3))
149 assert_array_equal(apply_along_axis(np.sum, 0, a),
150 [[27, 30, 33], [36, 39, 42], [45, 48, 51]])
151
152 def test_preserve_subclass(self):
153 def double(row):

Callers

nothing calls this directly

Calls 3

assert_array_equalFunction · 0.90
apply_along_axisFunction · 0.90
reshapeMethod · 0.80

Tested by

no test coverage detected