Test everything is ok with empty results, even with inserted dims
(self)
| 64 | assert_raises(np.AxisError, take_along_axis, a, ai, axis=10) |
| 65 | |
| 66 | def test_empty(self): |
| 67 | """ Test everything is ok with empty results, even with inserted dims """ |
| 68 | a = np.ones((3, 4, 5)) |
| 69 | ai = np.ones((3, 0, 5), dtype=np.intp) |
| 70 | |
| 71 | actual = take_along_axis(a, ai, axis=1) |
| 72 | assert_equal(actual.shape, ai.shape) |
| 73 | |
| 74 | def test_broadcast(self): |
| 75 | """ Test that non-indexing dimensions are broadcast in both directions """ |
nothing calls this directly
no test coverage detected