MCPcopy
hub / github.com/numpy/numpy / test_outer_out_param

Function test_outer_out_param

numpy/_core/tests/test_numeric.py:4014–4022  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4012
4013
4014def test_outer_out_param():
4015 arr1 = np.ones((5,))
4016 arr2 = np.ones((2,))
4017 arr3 = np.linspace(-2, 2, 5)
4018 out1 = np.ndarray(shape=(5, 5))
4019 out2 = np.ndarray(shape=(2, 5))
4020 res1 = np.outer(arr1, arr3, out1)
4021 assert_equal(res1, out1)
4022 assert_equal(np.outer(arr2, arr3, out2), out2)
4023
4024
4025class TestIndices:

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
linspaceMethod · 0.80
outerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…