Re: [Numpy-discussion] SeedSequence.spawn()

2021-08-26 Thread Robert Kern
On Thu, Aug 26, 2021 at 2:22 PM Stig Korsnes wrote: > Hi, > Is there a way to uniquely spawn child seeds? > I`m doing monte carlo analysis, where I have n random processes, each with > their own generator. > All process models instantiate a generator with default_rng(). I.e > ss=SeedSequence() cs

Re: [Numpy-discussion] A bite of C++

2021-08-26 Thread Serge Guelton
On Wed, Aug 25, 2021 at 05:50:49PM -0500, Sebastian Berg wrote: > On Wed, 2021-08-25 at 17:48 +0200, Serge Guelton wrote: > > Hi folks, > > > > https://github.com/numpy/numpy/pull/19713 showcases what *could* be a > > first step > > toward getting rid of generated C code within numpy, in favor of

[Numpy-discussion] SeedSequence.spawn()

2021-08-26 Thread Stig Korsnes
Hi, Is there a way to uniquely spawn child seeds? I`m doing monte carlo analysis, where I have n random processes, each with their own generator. All process models instantiate a generator with default_rng(). I.e ss=SeedSequence() cs=ss.Spawn(n), and using cs[i] for process i. Now, the problem I`m

Re: [Numpy-discussion] A bite of C++

2021-08-26 Thread Ralf Gommers
On Thu, Aug 26, 2021 at 12:51 AM Sebastian Berg wrote: > On Wed, 2021-08-25 at 17:48 +0200, Serge Guelton wrote: > > > Potential follow-ups : > > > > - do we want to use -nostdlib, to be sure we don't bring any C++ > > runtime dep? > > What does this mean for compatibility? It sounds reasonable