()
| 430 | |
| 431 | |
| 432 | def test_array_ufunc_binop(): |
| 433 | x = np.arange(25).reshape((5, 5)) |
| 434 | d = da.from_array(x, chunks=(2, 2)) |
| 435 | |
| 436 | for func in [np.add, np.multiply]: |
| 437 | assert isinstance(func(d, d), da.Array) |
| 438 | assert_eq(func(d, d), func(x, x)) |
| 439 | |
| 440 | assert isinstance(func.outer(d, d), da.Array) |
| 441 | assert_eq(func.outer(d, d), func.outer(x, x)) |
| 442 | |
| 443 | |
| 444 | def test_array_ufunc_out(): |