[Numpy-discussion] ANN: numexpr 2.4 RC2

2014-04-07 Thread Francesc Alted
=== Announcing Numexpr 2.4 RC2 === Numexpr is a fast numerical expression evaluator for NumPy. With it, expressions that operate on arrays (like 3*a+4*b) are accelerated and use less memory than doing the same calculation in Python. It wears

Re: [Numpy-discussion] match RNG numbers with R?

2014-04-07 Thread Sturla Molden
Yaroslav Halchenko li...@onerussian.com wrote: so I would assume that the devil is indeed in R post-processing and would look into it (if/when get a chance). I tried to look into the R source code. It's the worst mess I have ever seen. I couldn't even find their Mersenne twister. Sturla

Re: [Numpy-discussion] match RNG numbers with R?

2014-04-07 Thread Yaroslav Halchenko
On Mon, 07 Apr 2014, Sturla Molden wrote: so I would assume that the devil is indeed in R post-processing and would look into it (if/when get a chance). I tried to look into the R source code. It's the worst mess I have ever seen. I couldn't even find their Mersenne twister. it is in

Re: [Numpy-discussion] match RNG numbers with R?

2014-04-07 Thread Daπid
On Apr 7, 2014 3:59 AM, Yaroslav Halchenko li...@onerussian.com wrote: so I would assume that the devil is indeed in R post-processing and would look into it (if/when get a chance). The devil here is the pigeon and the holes problem. Mersenne Twister generates random integers in a certain

Re: [Numpy-discussion] match RNG numbers with R?

2014-04-07 Thread Robert Kern
On Mon, Apr 7, 2014 at 3:16 PM, Daπid davidmen...@gmail.com wrote: On Apr 7, 2014 3:59 AM, Yaroslav Halchenko li...@onerussian.com wrote: so I would assume that the devil is indeed in R post-processing and would look into it (if/when get a chance). The devil here is the pigeon and the holes

[Numpy-discussion] Proposed new function for joining arrays: np.interleave

2014-04-07 Thread Björn Dahlgren
Hello, Interleaving arrays is something I need to do every now and then, and by the looks of stackoverflow so do others: http://stackoverflow.com/questions/12861314/interleave-rows-of-two-numpy-arrays-in-python http://stackoverflow.com/questions/5347065/interweaving-two-numpy-arrays I think the

Re: [Numpy-discussion] match RNG numbers with R?

2014-04-07 Thread Sturla Molden
Yaroslav Halchenko li...@onerussian.com wrote: it is in src/main/RNG.c (ack is nice ;) )... from visual inspection looks matching I see... It's a rather vanilla Mersenne Twister, and it just use 32 bits of randomness. An signed int32 is multiplied by 2.3283064365386963e-10 to scale it to

Re: [Numpy-discussion] mtrand normal sigma = 0 too restrictive

2014-04-07 Thread Robert Kern
On Thu, Apr 3, 2014 at 2:35 PM, Neal Becker ndbeck...@gmail.com wrote: Traceback (most recent call last): File ./test_inroute_frame.py, line 1694, in module run_line (sys.argv) File ./test_inroute_frame.py, line 1690, in run_line return run (opt, cmdline) File

[Numpy-discussion] PEP 465 has been accepted / volunteers needed

2014-04-07 Thread Nathaniel Smith
Hey all, Guido just formally accepted PEP 465: https://mail.python.org/pipermail/python-dev/2014-April/133819.html http://legacy.python.org/dev/peps/pep-0465/#implementation-details Yay. The next step is to implement it, in CPython and in numpy. I have time to advise on this, but not to do

Re: [Numpy-discussion] PEP 465 has been accepted / volunteers needed

2014-04-07 Thread Fernando Perez
On Mon, Apr 7, 2014 at 4:23 PM, Nathaniel Smith n...@pobox.com wrote: Hey all, Guido just formally accepted PEP 465: https://mail.python.org/pipermail/python-dev/2014-April/133819.html http://legacy.python.org/dev/peps/pep-0465/#implementation-details Congratulations!! Getting a PEP

Re: [Numpy-discussion] PEP 465 has been accepted / volunteers needed

2014-04-07 Thread Alexander Belopolsky
I took liberty and reposted this as an ENH issue on the Python bug tracker. http://bugs.python.org/issue21176 On Mon, Apr 7, 2014 at 7:23 PM, Nathaniel Smith n...@pobox.com wrote: Guido just formally accepted PEP 465: https://mail.python.org/pipermail/python-dev/2014-April/133819.html