Re: [Numpy-discussion] NumPy 1.12.0 release

2017-01-17 Thread Jerome Kieffer
On Tue, 17 Jan 2017 08:56:42 -0500 Neal Becker wrote: > I've installed via pip3 on linux x86_64, which gives me a wheel. My > question is, am I loosing significant performance choosing this pre-built > binary vs. compiling myself? For example, my processor might have some more > features tha

Re: [Numpy-discussion] ufunc for sum of squared difference

2016-11-16 Thread Jerome Kieffer
On Mon, 14 Nov 2016 22:38:25 +0200 eat wrote: > but it's not so obvious what's happening "under the hoods". Consider this > (with an old Win7 machine): > Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 > bit (AMD64)] > np.__version__ > '1.11.1' What matters is the "blas"

Re: [Numpy-discussion] ufunc for sum of squared difference

2016-11-14 Thread Jerome Kieffer
On Fri, 11 Nov 2016 11:25:58 -0500 Matthew Harrigan wrote: > I started a ufunc to compute the sum of square differences here > . > It is about 4x faster and uses half the memory compared to > np.sum(np.square(x-c)). Hi Matt,

Re: [Numpy-discussion] Build broken

2015-12-15 Thread Jerome Kieffer
Hi, I noticed the same kind of glitches for my project "pyFAI". It seems some Travis VM are bugged. Cheers, Jerome ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Proposal: stop supporting 'setup.py install'; start requiring 'pip install .' instead

2015-10-28 Thread Jerome Kieffer
On Tue, 27 Oct 2015 15:35:50 -0700 (PDT) "Juan Nunez-Iglesias" wrote: > Can someone here who understands more about distribution maybe write a blog > post detailing: Hi, Olivier Grisel from sklearn gave a very good talk on this topic at PyCon, earlier this year: http://www.pyvideo.org/video/3

[Numpy-discussion] [JOBs] Data analysis position at the European synchrotron

2015-06-13 Thread Jerome Kieffer
/fo_annonce_voir.php?id=420 http://esrf.profilsearch.com/recrute/fo_annonce_voir.php?id=411 Best regards, Jerome Kieffer ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] read not byte aligned records

2015-05-04 Thread Jerome Kieffer
Hi, If you want to play with 10 bits data-blocks, read 5 bytes and work with 4 entries at a time... -- Jérôme Kieffer Data analysis unit - ESRF ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-d

Re: [Numpy-discussion] ANN: pyMIC v0.5 released

2015-03-27 Thread Jerome Kieffer
Hi, Interesting project. How close is the C++ kernel needed from OpenCL kernels ? Is it directly portable ? I have tested my OpenCL code (via pyopencl) on the Phi and I did not get better performances than the dual-hexacore Xeon (i.e. ~2x slower than a GPU). Cheers -- Jérôme Kieffer Data ana

Re: [Numpy-discussion] Installation on Windows

2015-03-20 Thread Jerome Kieffer
On Fri, 20 Mar 2015 09:45:41 +0100 Per Tunedal wrote: > Hi, > how do I install Numpy on Windows? I've tried the setup.py file, but get > an error message: > > setup.py install > > gives: > No module named msvccompiler in numpy.distutils; trying from distutils > error: Unable to find vcvarsall.b

Re: [Numpy-discussion] Rewrite np.histogram in c?

2015-03-16 Thread Jerome Kieffer
On Mon, 16 Mar 2015 06:56:58 -0700 Jaime Fernández del Río wrote: > Dispatching to a different method seems like a no brainer indeed. The > question is whether we really need to do this in C. I need to do both unweighted & weighted histograms and we got a factor 5 using (simple) cython: it is i

Re: [Numpy-discussion] Bilinear interpolation (numpy only)

2014-12-14 Thread Jerome Kieffer
On Sun, 14 Dec 2014 12:52:03 +0100 "Nicolas P. Rougier" wrote: > > Thanks Jérôme, I will look into your code. Having other filter might be > useful for my case. > > While looking for code, I've also found this (pure python) implementation: > http://stackoverflow.com/questions/12729228/simple-e

Re: [Numpy-discussion] Bilinear interpolation (numpy only)

2014-12-14 Thread Jerome Kieffer
On Sat, 13 Dec 2014 16:53:06 +0100 "Nicolas P. Rougier" wrote: > > Hi all, > > Does anyone has a simple 2D linear interpolation for resizing an image > (without scipy) ? > > Ideally, something like ```def zoom(Z, ratio): ...``` where Z is a 2D scalar > array and ratio the scaling factor. > (

Re: [Numpy-discussion] FFTS for numpy's FFTs (was: Re: Choosing between NumPy and SciPy functions)

2014-10-28 Thread Jerome Kieffer
On Tue, 28 Oct 2014 04:28:37 + Nathaniel Smith wrote: > It's definitely attractive. Some potential issues that might need dealing > with, based on a quick skim: In my tests, numpy's FFTPACK isn't that bad considering * (virtually) no extra overhead for installation * (virtually) no plan cre

Re: [Numpy-discussion] ENH IncrementalWriter for .npy files

2014-09-02 Thread Jerome Kieffer
Hi, This feature is very similar to what is available in hdf5 and exposed under h5py using chunks and max_size ... Cheers, -- Jérôme Kieffer tel +33 476 882 445 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailm

Re: [Numpy-discussion] NumPy en français

2014-06-23 Thread Jerome Kieffer
Hi, As the request is is French, I will answer in French... On Sun, 22 Jun 2014 22:01:43 +0200 pi8L4vion wrote: > Bonsoir à tous, > > Est-ce qu’il y a des francophones qui pourraient échanger avec moi ? Je suis Français ... par contre je ne connais pas de liste de discussion sur numpy ni su

Re: [Numpy-discussion] Is there a pure numpy recipe for this?

2014-03-27 Thread Jerome Kieffer
On Thu, 27 Mar 2014 16:19:54 + "Aaron O'Leary" wrote: > > You might want to look at hdf5 if you're routinely running out of ram. > I'm using h5py with multi gigabyte data on an ssd right now. It is very > fast. You still have to be careful with your computations and try to > avoid creating c

Re: [Numpy-discussion] MKL + CPU, GPU + cuBLAS comparison

2013-11-26 Thread Jerome Kieffer
On Tue, 26 Nov 2013 01:02:40 -0800 "Dinesh Vadhia" wrote: > Probably a loaded question but is there a significant performance difference > between using MKL (or OpenBLAS) on multi-core cpu's and cuBLAS on gpu's. > Does anyone have recent experience or link to an independent benchmark? > Usin

Re: [Numpy-discussion] multiprocessing, numpy and 32-64 bit cohabitation

2013-09-18 Thread Jerome Kieffer
On Wed, 18 Sep 2013 18:40:44 -0700 Antony Lee wrote: > Thanks, I didn't know that multiprocessing Managers could be used with > processes not started by multiprocessing itself... I will give them a try. > I just need to compute FFTs, but speed is a real issue for me (I am using > the results for

Re: [Numpy-discussion] Error occurance on Skimage 0.9.0 version

2013-09-05 Thread Jerome Kieffer
On Thu, 05 Sep 2013 17:35:16 +0400 Happyman wrote: > Hello, > > I downloaded skimage 0.9.0dev version and installed like following on Windows; > cd C:\skimage\python setup.py install. > > One error occurred: Unable to find vcvarsall.bat . It is not the first time I > have been taken such an e

Re: [Numpy-discussion] add .H attribute?

2013-07-23 Thread Jerome Kieffer
On Tue, 23 Jul 2013 01:07:27 -0700 Fernando Perez wrote: > Silly suggestion: why not just make .H a callable? > > a.H() +1 -- Jérôme Kieffer On-Line Data analysis / Software Group ISDD / ESRF tel +33 476 882 445 ___ NumPy-Discussion mailing list Nu

Re: [Numpy-discussion] About speed vs math...

2013-06-03 Thread Jerome Kieffer
On Mon, 3 Jun 2013 07:33:23 +0100 David Cournapeau wrote: > > While not surprising, I did not expect numpy to be so much slower (25x)... > It is a known limitation of numpy scalars. As soon as you use array > that are not tiny, the speed difference disappears and then favors > numpy arrays (aroun

[Numpy-discussion] About speed vs math...

2013-06-02 Thread Jerome Kieffer
Hello, I am giving some introduction tutorials to numpy and we notices a big difference in speed between nuumpy and math for trigonometric operations: In [3]: %timeit numpy.sin(1) 10 loops, best of 3: 2.27 us per loop In [4]: %timeit math.sin(1) 1000 loops, best of 3: 92.3 ns per loop W

Re: [Numpy-discussion] Calling scipy blas f rom cython is extr emely slow

2013-02-23 Thread Jerome Kieffer
On Sat, 23 Feb 2013 18:31:42 + (UTC) Sergio Callegari wrote: > However, it is still slower than the cblas > > cblas -> 0.69 sec > scipy blas -> 0.74 sec if you are using scipy blas, the real question is which blas is underneath ? OpenBlas, GotoBlas, Atlas, MKL ? Under Debian I observed a x

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-29 Thread Jerome Kieffer
On Tue, 29 May 2012 10:03:04 -0700 Stéfan van der Walt wrote: > On Mon, May 28, 2012 at 11:53 AM, Travis Oliphant wrote: > > I could see these functions going into scipy.ndimage but again because they > > are not necessarily just image processing functions, and the fact that they > > are so simp

Re: [Numpy-discussion] fast method to to count a particular value in a large matrix

2012-02-04 Thread Jerome Kieffer
On Sat, 4 Feb 2012 14:35:08 -0600 Benjamin Root wrote: > > no.unique() can return indices and reverse indices. It would be trivial to > histogram the reverse indices using np.histogram(). Even np.histogram(abc,unique_elem) or something like this. Works if unique_elem is ordered. np.histogram