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

Method test_3d

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

Source from the content-addressed store, hash-verified

116 apply_along_axis(len, 0, a), len(a)*np.ones(a.shape[1]))
117
118 def test_3d(self):
119 a = np.arange(27).reshape((3, 3, 3))
120 assert_array_equal(apply_along_axis(np.sum, 0, a),
121 [[27, 30, 33], [36, 39, 42], [45, 48, 51]])
122
123 def test_preserve_subclass(self):
124 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