()
| 417 | |
| 418 | |
| 419 | def test_array_ufunc_binop(): |
| 420 | x = np.arange(25).reshape((5, 5)) |
| 421 | d = da.from_array(x, chunks=(2, 2)) |
| 422 | |
| 423 | for func in [np.add, np.multiply]: |
| 424 | assert isinstance(func(d, d), da.Array) |
| 425 | assert_eq(func(d, d), func(x, x)) |
| 426 | |
| 427 | assert isinstance(func.outer(d, d), da.Array) |
| 428 | assert_eq(func.outer(d, d), func.outer(x, x)) |
| 429 | |
| 430 | |
| 431 | def test_array_ufunc_out(): |