Re: [Numpy-discussion] Optimize evaluation of function on matrix

2017-03-27 Thread Matthew Harrigan
The best way to get good optimized code is to find it. Does this do what you want? https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.Rbf.html For some advice here, first avoid loops in Python and instead stick to ufuncs and broadcasting. It looks like the matrix is symmetri

Re: [Numpy-discussion] migration of all scipy.org mailing lists

2017-03-27 Thread Ralf Gommers
On Tue, Mar 28, 2017 at 8:22 AM, Pauli Virtanen wrote: > Sun, 26 Mar 2017 21:05:47 +1300, Ralf Gommers kirjoitti: > [clip] > > The move is complete, and I have updated the mailing list addresses at: > > - http://scipy.org/scipylib/mailing-lists.html (done) > > - numpy codebase (PR https://github.

Re: [Numpy-discussion] Fwd: [numfocus] Grants up to $3k available to NumFOCUS projects, (sponsored & affiliated)

2017-03-27 Thread Chris Barker
On Mon, Mar 27, 2017 at 12:14 PM, Pauli Virtanen wrote: > > The bigger challenge is deciding what to do -- the bikeshedding -- and > > the backward incompatibility issues. IIRC, when this came up on the > > list, there was nothing like consensus on exactly what to do and how > > to do it. > > TBH

Re: [Numpy-discussion] migration of all scipy.org mailing lists

2017-03-27 Thread Pauli Virtanen
Sun, 26 Mar 2017 21:05:47 +1300, Ralf Gommers kirjoitti: [clip] > The move is complete, and I have updated the mailing list addresses at: > - http://scipy.org/scipylib/mailing-lists.html (done) > - numpy codebase (PR https://github.com/numpy/numpy/pull/8840) > - scipy codebase (PR https://github.c

Re: [Numpy-discussion] Fwd: [numfocus] Grants up to $3k available to NumFOCUS projects, (sponsored & affiliated)

2017-03-27 Thread Pauli Virtanen
Mon, 27 Mar 2017 08:21:37 -0700, Chris Barker kirjoitti: > On Mon, Mar 27, 2017 at 3:33 AM, Julian Taylor > wrote: > >> - add ascii/latin1 dtype to support a compact python3 string array, >> deprecate 's' dtype which has different meaning in python2 and 3 This >> one is probably too big for 3k th

Re: [Numpy-discussion] Fwd: [numfocus] Grants up to $3k available to NumFOCUS projects (sponsored & affiliated)

2017-03-27 Thread Chris Barker
On Mon, Mar 27, 2017 at 3:33 AM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > - add ascii/latin1 dtype to support a compact python3 string array, > deprecate 's' dtype which has different meaning in python2 and 3 > This one is probably too big for 3k though. > probably -- but not THAT

Re: [Numpy-discussion] Optimize evaluation of function on matrix

2017-03-27 Thread Sebastian Berg
On Mon, 2017-03-27 at 13:06 +0200, Florian Lindner wrote: > Hey, > > I've timed the two versions, one basisfunction being a function: > > 1 loop, best of 3: 17.3 s per loop > > the other one, basisfunction being a list of functions: > > 1 loop, best of 3: 33.5 s per loop > > > To be honest, I

Re: [Numpy-discussion] Optimize evaluation of function on matrix

2017-03-27 Thread Florian Lindner
Hey, I've timed the two versions, one basisfunction being a function: 1 loop, best of 3: 17.3 s per loop the other one, basisfunction being a list of functions: 1 loop, best of 3: 33.5 s per loop > To be honest, I am a bit surprised that its a problem, since "basis > function" sounds a bit lik

Re: [Numpy-discussion] Fwd: [numfocus] Grants up to $3k available to NumFOCUS projects (sponsored & affiliated)

2017-03-27 Thread Ralf Gommers
On Mon, Mar 27, 2017 at 11:33 PM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > I have two ideas under one big important topic: make numpy python3 > compatible. > > The first fits pretty well with the grant size and nobody wants to do it > for free: > - fix our text IO functions under py

Re: [Numpy-discussion] Fwd: [numfocus] Grants up to $3k available to NumFOCUS projects (sponsored & affiliated)

2017-03-27 Thread Julian Taylor
I have two ideas under one big important topic: make numpy python3 compatible. The first fits pretty well with the grant size and nobody wants to do it for free: - fix our text IO functions under python3 and support multiple encodings, not only latin1. Reasonably simple to do, slap encoding argume

[Numpy-discussion] Fwd: [numfocus] Grants up to $3k available to NumFOCUS projects (sponsored & affiliated)

2017-03-27 Thread Ralf Gommers
Hi all, For those who did not see the call on the NumFOCUS list, the below may be of interest. I also have a proposal idea: a redesign of numpy.org. Our website is very poor, both in terms of content and design. If a good designer spends 40 hours on it, that should be enough to change it into som