[Numpy-discussion] new function: broadcast_shapes

Warren Weckesser warren.weckesser at gmail.com
Thu Oct 15 14:46:40 EDT 2020


On 10/15/20, Madhulika Jain Chambers <madhulikajain at gmail.com> wrote:
> Hello all,
>
> I opened a PR to add a function which returns the broadcasted shape from a
> given set of shapes:
> https://github.com/numpy/numpy/pull/17535
>
> As this is a proposed change to the API, I wanted to see if there was any
> feedback from the list.


Thanks, this is useful!  I've implemented something similar many times
over the years, and could have used it in some SciPy code, where we
currently have a private implementation in one of the `stats` modules.

Warren


>
> Thanks so much,
>
> Madhulika
>


More information about the NumPy-Discussion mailing list