(self)
| 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): |
nothing calls this directly
no test coverage detected