[Numpy-discussion] argmin/argmax underspecification?

2022-06-16 Thread TODD ANDERSON
The docs say "Returns the indices of the maximum values along an axis." When axis=None, I presume the implementation is actually "Returns the first index (assuming ravel ordering) of the maximum value." I also presume that people are now relying on the fact that it always returns the first suc

[Numpy-discussion] Consistency of random number functions APIs.

2021-10-30 Thread Todd Anderson
Some NumPy random number generation functions take a dtype parameter whereas others don't. Some of them take an out parameter whereas others don't. Just glancing at it, there seems to be no rhyme or reason why this would be the case but is there some hidden consistency underneath the hood to e