[Numpy-discussion] Re: ENH: Let numpy.size accept multiple axes

2025-06-19 Thread Carlos Martin
Correction: [`math.prod`](https://docs.python.org/3/library/math.html#math.prod). ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3//lists/n

[Numpy-discussion] ENH: Let numpy.size accept multiple axes

2025-06-19 Thread Carlos Martin
Let the `axis` argument of [`numpy.size`](https://numpy.org/doc/stable/reference/generated/numpy.size.html) accept a tuple of ints (like other functions that take an `axis` argument) to measure the size for multiple axes. This should be straightforward to implement with [`itertools.product`](h