(shape1, shape2)
| 446 | |
| 447 | @pytest.mark.parametrize("shape1, shape2", [((20,), (6,)), ((4, 5), (2, 3))]) |
| 448 | def test_outer(shape1, shape2): |
| 449 | rng = np.random.default_rng(1337) |
| 450 | |
| 451 | x = 2 * rng.random(shape1) - 1 |
| 452 | y = 2 * rng.random(shape2) - 1 |
| 453 | |
| 454 | a = da.from_array(x, chunks=3) |
| 455 | b = da.from_array(y, chunks=3) |
| 456 | |
| 457 | assert_eq(np.outer(x, y), da.outer(a, b)) |
| 458 | assert_eq(np.outer(y, x), da.outer(b, a)) |
| 459 | |
| 460 | |
| 461 | @pytest.mark.parametrize( |