Re: [Numpy-discussion] Moving forward with value based casting

2019-06-21 Thread Sebastian Berg
On Wed, 2019-06-05 at 21:35 -0400, Marten van Kerkwijk wrote: > Hi Sebastian, > > Tricky! It seems a balance between unexpected memory blow-up and > unexpected wrapping (the latter mostly for integers). > > Some comments specifically on your message first, then some more > general related ones.

Re: [Numpy-discussion] new MaskedArray class

2019-06-21 Thread Benjamin Root
Just to note, data that is masked isn't always garbage. There are plenty of use-cases where one may want to temporarily apply a mask for a set of computation, or possibly want to apply a series of different masks to the data. I haven't read through this discussion deeply enough, but is this new cla

[Numpy-discussion] Better way to create multiple independent random number generators

2019-06-21 Thread Sebastian Berg
Hi all, since this is going to be a new addition as part of the randomgen, I thought I would just mention it on the mailing list. The Pull Request: https://github.com/numpy/numpy/pull/13780 Implements a new SeedSequence object based on Robert Kern's proposal and especially the work by Prof. O'Ne

Re: [Numpy-discussion] Better way to create multiple independent random number generators

2019-06-21 Thread Robert Kern
On Fri, Jun 21, 2019 at 11:39 AM Sebastian Berg wrote: > I am very happy with this new API. Right now we decided to opt for a > SeedSequence object. In the future we may opt to adding a `.spawn()` > method directly to the Generator or BitGenerator. This is mostly a > heads up, since it is a new s