Re: [Numpy-discussion] dot and MKL memory

2015-02-27 Thread Mads Ipsen
On 27/02/15 17:50, Charles R Harris wrote: > > > On Fri, Feb 27, 2015 at 9:02 AM, Mads Ipsen > wrote: > > Hi, > > If I build Python 2.7.2 and numpy-1.9.1 and run the following script > > import numpy > c = numpy.ones((50, 4)) > mat = numpy.ide

Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Sturla Molden
On 28/02/15 00:04, Robert Kern wrote: > When plt.imshow() is given floating point RGB images, it assumes that > each channel is normalized to 1. You are mixing a 0..255 image with a > 0..1 image. Divide `lenna` by 255.0 before you stack it with `_dct`. Or > multiply `_dct` by 255 and cast it to ui

Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Robert Kern
On Fri, Feb 27, 2015 at 10:33 PM, Sturla Molden wrote: > > Somewhere... But where is it? > > NumPy, SciPy, Matplotlib, Cython or ipython? > > I am suspecting ipython, but proving it is hard... > > http://nbviewer.ipython.org/urls/dl.dropboxusercontent.com/u/12464039/lenna-bug.ipynb When plt.imsho

Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Sturla Molden
On 27/02/15 23:39, Benjamin Root wrote: > Is this another white-gold vs. blue-black dress color thing? No. It is what you said in you next post. I hate that dress image. The first time I looked at it it was white and gold, then it became blue and black, and the third time it was grayish blue an

Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Sturla Molden
On 27/02/15 23:40, Benjamin Root wrote: > oh... I think I see what you are referring to. The second image should > have the regular lenna image, not the negative? Yeah. The ndarray references are getting messed up. It is actually quite serious. Sturla > > Ben Root > > On Fri, Feb 27, 2015 at

Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Benjamin Root
oh... I think I see what you are referring to. The second image should have the regular lenna image, not the negative? Ben Root On Fri, Feb 27, 2015 at 5:39 PM, Benjamin Root wrote: > It is Friday evening here... I must be really dense. What bug are we > looking at? Is this another white-gold

Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Benjamin Root
It is Friday evening here... I must be really dense. What bug are we looking at? Is this another white-gold vs. blue-black dress color thing? Ben Root On Fri, Feb 27, 2015 at 5:33 PM, Sturla Molden wrote: > Somewhere... But where is it? > > NumPy, SciPy, Matplotlib, Cython or ipython? > > I am

[Numpy-discussion] So I found a bug...

2015-02-27 Thread Sturla Molden
Somewhere... But where is it? NumPy, SciPy, Matplotlib, Cython or ipython? I am suspecting ipython, but proving it is hard... http://nbviewer.ipython.org/urls/dl.dropboxusercontent.com/u/12464039/lenna-bug.ipynb Sturla ___ NumPy-Discussion mailing l

Re: [Numpy-discussion] dot and MKL memory

2015-02-27 Thread Daπid
On 27 February 2015 at 17:50, Charles R Harris wrote: >> > > No, but I don't know why that is happening with MKL. Can anyone else > reproduce this? > > Chuck I can't reproduce. I have checked on my system python (ATLAS) and Conda with MKL running in parallel with vmstat. The difference between th

Re: [Numpy-discussion] dot and MKL memory

2015-02-27 Thread Charles R Harris
On Fri, Feb 27, 2015 at 9:02 AM, Mads Ipsen wrote: > Hi, > > If I build Python 2.7.2 and numpy-1.9.1 and run the following script > > import numpy > c = numpy.ones((50, 4)) > mat = numpy.identity(4) > r = numpy.dot(c, mat) > > the evaluation of the 'dot' increases the memory by app. 35 MB. >

[Numpy-discussion] dot and MKL memory

2015-02-27 Thread Mads Ipsen
Hi, If I build Python 2.7.2 and numpy-1.9.1 and run the following script import numpy c = numpy.ones((50, 4)) mat = numpy.identity(4) r = numpy.dot(c, mat) the evaluation of the 'dot' increases the memory by app. 35 MB. If, in addition, I build numpy-1.9.1 with MKL support, and run the scr