MCPcopy Index your code
hub / github.com/numpy/numpy / test_one_off

Function test_one_off

numpy/lib/tests/test_stride_tricks.py:81–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80
81def test_one_off():
82 x = np.array([[1, 2, 3]])
83 y = np.array([[1], [2], [3]])
84 bx, by = broadcast_arrays(x, y)
85 bx0 = np.array([[1, 2, 3], [1, 2, 3], [1, 2, 3]])
86 by0 = bx0.T
87 assert_array_equal(bx0, bx)
88 assert_array_equal(by0, by)
89
90
91def test_same_input_shapes():

Callers

nothing calls this directly

Calls 2

broadcast_arraysFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…