(self)
| 1460 | np.add.reduceat([1, None, 2], [0, 2]) |
| 1461 | |
| 1462 | def test_zerosize_reduction(self): |
| 1463 | # Test with default dtype and object dtype |
| 1464 | for a in [[], np.array([], dtype=object)]: |
| 1465 | assert_equal(np.sum(a), 0) |
| 1466 | assert_equal(np.prod(a), 1) |
| 1467 | assert_equal(np.any(a), False) |
| 1468 | assert_equal(np.all(a), True) |
| 1469 | assert_raises(ValueError, np.max, a) |
| 1470 | assert_raises(ValueError, np.min, a) |
| 1471 | |
| 1472 | def test_axis_out_of_bounds(self): |
| 1473 | a = np.array([False, False]) |
nothing calls this directly
no test coverage detected