You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really useful when operating with other array libraries to support __array_function__ on numpy.random functions (like shuffle) so as to dispatch to other implementations for those arrays.
The text was updated successfully, but these errors were encountered:
It looks to me like there are three functions for which this would make sense: shuffle, choice and permutation. Those operate on an existing array rather than generating a new one from some input parameters.
Hi all,
I noticed that this issue is quite old, but I was messing around recently and wanted to provide a custom implementation of shuffle for my ndarray subclass. I made some simple changes and opened a PR. Hope this is OK, suggestions welcome :)
It would be really useful when operating with other array libraries to support
__array_function__
onnumpy.random
functions (likeshuffle
) so as to dispatch to other implementations for those arrays.The text was updated successfully, but these errors were encountered: