()
| 1358 | |
| 1359 | |
| 1360 | def test_broadcast_to_array(): |
| 1361 | x = np.random.default_rng().integers(10, size=(5, 1, 6)) |
| 1362 | |
| 1363 | for shape in [(5, 0, 6), (5, 4, 6), (2, 5, 1, 6), (3, 4, 5, 4, 6)]: |
| 1364 | a = np.broadcast_to(x, shape) |
| 1365 | d = broadcast_to(x, shape) |
| 1366 | |
| 1367 | assert_eq(a, d) |
| 1368 | |
| 1369 | |
| 1370 | def test_broadcast_to_scalar(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…