MCPcopy Create free account
hub / github.com/numpy/numpy / test_outer_out_param

Function test_outer_out_param

numpy/core/tests/test_numeric.py:3384–3392  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3382
3383
3384def 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
3395class TestIndices:

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
linspaceMethod · 0.80
outerMethod · 0.45

Tested by

no test coverage detected