Re: [Numpy-discussion] numpy.interp running time

2011-07-31 Thread Timo Kluck
2011/7/30 Eric Firing > On 07/29/2011 11:18 AM, Timo Kluck wrote: > > The current implementation of numpy.interp(x,xp,fp) comes down to: first > > calculating all the slopes of the linear interpolant (these are > > len(xp)-1), then use a binary search to find where x is in xp (running > > time lo

Re: [Numpy-discussion] Rationale for returning type-wrapped min() / max() scalars? (was: Problem with ufunc of a numpy.ndarray derived class)

2011-07-31 Thread eat
Hi, On Sun, Jul 31, 2011 at 7:36 PM, Charles R Harris wrote: > > > On Sun, Jul 31, 2011 at 12:50 AM, Hans Meine < > me...@informatik.uni-hamburg.de> wrote: > >> Am 29.07.2011 um 20:23 schrieb Nathaniel Smith: >> > Even so, surely this behavior should be consistent between base class >> > ndarray

[Numpy-discussion] [ANN] IPython 0.11 is officially out

2011-07-31 Thread Fernando Perez
Hi all, on behalf of the IPython development team, I'm thrilled to announce, after more than two years of development work, the official release of IPython 0.11. This release brings a long list of improvements and new features (along with hopefully few new bugs). We have completely refactored IP

Re: [Numpy-discussion] Rationale for returning type-wrapped min() / max() scalars? (was: Problem with ufunc of a numpy.ndarray derived class)

2011-07-31 Thread Charles R Harris
On Sun, Jul 31, 2011 at 12:50 AM, Hans Meine < me...@informatik.uni-hamburg.de> wrote: > Am 29.07.2011 um 20:23 schrieb Nathaniel Smith: > > Even so, surely this behavior should be consistent between base class > > ndarrays and subclasses? If returning 0d arrays is a good idea, then > > we should

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-31 Thread Martin Ling
Hi Hans, Sorry, that is actually what I implemented, I just documented it iincorrectly. I have just pushed an update to the README. Thanks for pointing this out! Martin On Sun, Jul 31, 2011 at 07:57:58AM +0200, Hans Meine wrote: > > Hi Martin, > > I think it would be more useful if isfinite r

[Numpy-discussion] recommendation for saving data

2011-07-31 Thread Brian Blais
Hello, I was wondering if there are any recommendations for formats for saving scientific data. I am running a simulation, which has many somewhat-indepedent parts which have their own internal state and parameters. I've been using pickle (gzipped) to save the entire object (which contains su

[Numpy-discussion] Error when building numpy with Py3k

2011-07-31 Thread Dirk Ullrich
Hi, trying to build current Git master of numpy with Py3k (Pythin 3.2.1, to be precise) yields to an error: building 'numpy.lib._compiled_base' extension compiling C sources C compiler: gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -m

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-31 Thread Friedrich Romstedt
2011/7/29 Benjamin Root : > I am starting to get very interested in this quaternion concept (and maybe > how I could use it for mplot3d), but I have never come across it before > (beyond the typical vector math that I am familiar with). Can anybody > recommend a good introductory resource to get m