array-api icon indicating copy to clipboard operation
array-api copied to clipboard

feat: add `broadcast_shapes` to the specification

Open kgryte opened this issue 1 month ago • 1 comments

This PR

  • resolves https://github.com/data-apis/array-api/issues/893 by adding support for broadcast_shapes to the specification.
  • follows NumPy et al in supporting an arbitrary number of input shapes to be broadcasted.
  • specifies that only shapes which contain integers are explicitly supported. For shapes containing sentinel values such as None for a dimension of unknown size, behavior is left unspecified and thus implementation-defined.

kgryte avatar Dec 08 '25 08:12 kgryte

the array-api-extra docs just say image https://data-apis.org/array-api-extra/generated/array_api_extra.broadcast_shapes.html

lucascolley avatar Dec 11 '25 17:12 lucascolley