()
| 3382 | |
| 3383 | |
| 3384 | def test_outer_out_param(): |
| 3385 | arr1 = np.ones((5,)) |
| 3386 | arr2 = np.ones((2,)) |
| 3387 | arr3 = np.linspace(-2, 2, 5) |
| 3388 | out1 = np.ndarray(shape=(5,5)) |
| 3389 | out2 = np.ndarray(shape=(2, 5)) |
| 3390 | res1 = np.outer(arr1, arr3, out1) |
| 3391 | assert_equal(res1, out1) |
| 3392 | assert_equal(np.outer(arr2, arr3, out2), out2) |
| 3393 | |
| 3394 | |
| 3395 | class TestIndices: |
nothing calls this directly
no test coverage detected