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

Function test_one_off

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

Source from the content-addressed store, hash-verified

71
72
73def test_one_off():
74 x = np.array([[1, 2, 3]])
75 y = np.array([[1], [2], [3]])
76 bx, by = broadcast_arrays(x, y)
77 bx0 = np.array([[1, 2, 3], [1, 2, 3], [1, 2, 3]])
78 by0 = bx0.T
79 assert_array_equal(bx0, bx)
80 assert_array_equal(by0, by)
81
82
83def 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