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