()
| 534 | |
| 535 | |
| 536 | def test_0d_array(): |
| 537 | x = da.mean(da.ones(4, chunks=4), axis=()).compute() |
| 538 | x = da.mean(da.ones(4, chunks=4), axis=0).compute() |
| 539 | y = np.mean(np.ones(4)) |
| 540 | assert type(x) == type(y) |
| 541 | |
| 542 | x = da.sum(da.zeros(4, chunks=1)).compute() |
| 543 | y = np.sum(np.zeros(4)) |
| 544 | assert type(x) == type(y) |
| 545 | |
| 546 | |
| 547 | def test_reduction_on_scalar(): |