array-api
array-api copied to clipboard
feat!: return tuples rather than lists in `meshgrid`, `broadcast_arrays`, and `info.devices`
This PR
- resolves https://github.com/data-apis/array-api/issues/938
- updates
meshgridto return atuplerather than a list. This follows NumPy and PyTorch. - updates
broadcast_arraysto return atuplerather than a list. This follows NumPy. - updates
info.devicesto return atuplerather than a list. This ensures consistency with the rest of the specification where we always returntuples, rather than lists.
This changes benefits Array API consumers such as Numba, where working with tuples facilitates optimizations.
Note that this is a breaking specification change.