(input_shapes)
| 23 | |
| 24 | |
| 25 | def assert_incompatible_shapes_raise(input_shapes): |
| 26 | # Broadcast a list of arrays with the given (incompatible) input shapes |
| 27 | # and check that they raise a ValueError. |
| 28 | |
| 29 | inarrays = [np.zeros(s) for s in input_shapes] |
| 30 | assert_raises(ValueError, broadcast_arrays, *inarrays) |
| 31 | |
| 32 | |
| 33 | def assert_same_as_ufunc(shape0, shape1, transposed=False, flipped=False): |
no test coverage detected