Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-14 Thread Neal Becker
Robert Kern wrote: > On Thu, Mar 14, 2013 at 11:00 AM, Neal Becker wrote: >> Robert Kern wrote: >> >>> On Wed, Mar 13, 2013 at 12:16 AM, Neal Becker wrote: I guess I talked to you about 100 years ago about sharing state between numpy rng and code I have in c++ that wraps boost::ra

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-14 Thread Robert Kern
On Thu, Mar 14, 2013 at 11:00 AM, Neal Becker wrote: > Robert Kern wrote: > >> On Wed, Mar 13, 2013 at 12:16 AM, Neal Becker wrote: >>> I guess I talked to you about 100 years ago about sharing state between >>> numpy >>> rng and code I have in c++ that wraps boost::random. So is there a C-api

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-14 Thread Neal Becker
Robert Kern wrote: > On Wed, Mar 13, 2013 at 12:16 AM, Neal Becker wrote: >> I guess I talked to you about 100 years ago about sharing state between numpy >> rng and code I have in c++ that wraps boost::random. So is there a C-api for >> this RandomState object I could use to call from c++? May

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-14 Thread Neal Becker
Robert Kern wrote: > On Wed, Mar 13, 2013 at 12:16 AM, Neal Becker wrote: >> I guess I talked to you about 100 years ago about sharing state between numpy >> rng and code I have in c++ that wraps boost::random. So is there a C-api for >> this RandomState object I could use to call from c++? May

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-14 Thread Robert Kern
On Wed, Mar 13, 2013 at 12:16 AM, Neal Becker wrote: > I guess I talked to you about 100 years ago about sharing state between numpy > rng and code I have in c++ that wraps boost::random. So is there a C-api for > this RandomState object I could use to call from c++? Maybe I could do > something

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-13 Thread Neal Becker
Neal Becker wrote: > Neal Becker wrote: > >> I guess I talked to you about 100 years ago about sharing state between numpy >> rng and code I have in c++ that wraps boost::random. So is there a C-api for >> this RandomState object I could use to call from c++? Maybe I could do >> something with

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-12 Thread josef . pktd
On Tue, Mar 12, 2013 at 7:10 PM, Robert Kern wrote: > On Tue, Mar 12, 2013 at 10:38 PM, Neal Becker wrote: >> Nathaniel Smith wrote: >> >>> On Tue, Mar 12, 2013 at 9:25 PM, Nathaniel Smith wrote: On Mon, Mar 11, 2013 at 9:46 AM, Robert Kern wrote: > On Sun, Mar 10, 2013 at 6:12 PM, Siu

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-12 Thread Neal Becker
Neal Becker wrote: > I guess I talked to you about 100 years ago about sharing state between numpy > rng and code I have in c++ that wraps boost::random. So is there a C-api for > this RandomState object I could use to call from c++? Maybe I could do > something with that. > > The c++ code coul

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-12 Thread Neal Becker
I guess I talked to you about 100 years ago about sharing state between numpy rng and code I have in c++ that wraps boost::random. So is there a C-api for this RandomState object I could use to call from c++? Maybe I could do something with that. The c++ code could invoke via the python api,

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-12 Thread Robert Kern
On Tue, Mar 12, 2013 at 10:38 PM, Neal Becker wrote: > Nathaniel Smith wrote: > >> On Tue, Mar 12, 2013 at 9:25 PM, Nathaniel Smith wrote: >>> On Mon, Mar 11, 2013 at 9:46 AM, Robert Kern wrote: On Sun, Mar 10, 2013 at 6:12 PM, Siu Kwan Lam wrote: > My suggestion to overcome (1) and (2

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-12 Thread Neal Becker
Nathaniel Smith wrote: > On Tue, Mar 12, 2013 at 9:25 PM, Nathaniel Smith wrote: >> On Mon, Mar 11, 2013 at 9:46 AM, Robert Kern wrote: >>> On Sun, Mar 10, 2013 at 6:12 PM, Siu Kwan Lam wrote: My suggestion to overcome (1) and (2) is to allow the user to select between the two impleme

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-12 Thread josef . pktd
On Tue, Mar 12, 2013 at 5:27 PM, Nathaniel Smith wrote: > On Tue, Mar 12, 2013 at 9:25 PM, Nathaniel Smith wrote: >> On Mon, Mar 11, 2013 at 9:46 AM, Robert Kern wrote: >>> On Sun, Mar 10, 2013 at 6:12 PM, Siu Kwan Lam wrote: My suggestion to overcome (1) and (2) is to allow the user to se

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-12 Thread Nathaniel Smith
On Tue, Mar 12, 2013 at 9:25 PM, Nathaniel Smith wrote: > On Mon, Mar 11, 2013 at 9:46 AM, Robert Kern wrote: >> On Sun, Mar 10, 2013 at 6:12 PM, Siu Kwan Lam wrote: >>> My suggestion to overcome (1) and (2) is to allow the user to select between >>> the two implementations (and possibly differe

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-12 Thread Nathaniel Smith
On Mon, Mar 11, 2013 at 9:46 AM, Robert Kern wrote: > On Sun, Mar 10, 2013 at 6:12 PM, Siu Kwan Lam wrote: >> My suggestion to overcome (1) and (2) is to allow the user to select between >> the two implementations (and possibly different algorithms in the future). >> If user does not provide a ch

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-11 Thread Robert Kern
On Sun, Mar 10, 2013 at 6:12 PM, Siu Kwan Lam wrote: > Hi all, > > I am redirecting a discussion on github issue tracker here. My original > post (https://github.com/numpy/numpy/issues/3137): > > "The current implementation of the RNG seems to be MT19937-32. Since 64-bit > machines are common now

[Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-10 Thread Siu Kwan Lam
Hi all, I am redirecting a discussion on github issue tracker here. My original post (https://github.com/numpy/numpy/issues/3137): "The current implementation of the RNG seems to be MT19937-32. Since 64-bit machines are common nowadays, I am suggesting adding or upgrading to MT19937-64. Thou