Re: [Numpy-discussion] Code review for adding axis argument to permutation and shuffle function

2019-09-12 Thread mattip
This proposal to add an axis argument to permutation and shuffle seems to
have garnered no reply. Are people OK with it (for the new random.Generator
only) ?



--
Sent from: http://numpy-discussion.10968.n7.nabble.com/
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] numpy C-API :: use numpy's random number generator in a ufunc

2019-10-18 Thread mattip
Hi Daniel. Usually one would use python, something like `rng =
np.random.Generator(np.random.PCG64(seed)); a = rng.uniform(10, size=(3,
4))` to get a 3 by 4 array of uniform random numbers in the range of 0 to
10. Is there a reason you need to do this from C?

Matti



--
Sent from: http://numpy-discussion.10968.n7.nabble.com/
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] Re: Suggestion to show the shape in repr for summarized arrays

2024-10-30 Thread mattip via NumPy-Discussion
We discussed this again and will merge the current version in a few days unless 
there is more discussion.
___
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/numpy-discussion.python.org/
Member address: arch...@mail-archive.com