Re: [Numpy-discussion] cumsum much slower than simple loop?

2012-02-10 Thread Pauli Virtanen
10.02.2012 05:39, Dave Cook kirjoitti: Why is numpy.cumsum (along axis=0) so much slower than a simple loop? The same goes for numpy.add.accumulate The reason is loop ordering. The reduction operator when using `cumsum` or `add.reduce` does the summation in the inmost loop, whereas the

Re: [Numpy-discussion] On making Numpy 1.7 a long term support release.

2012-02-10 Thread David Cournapeau
On Sun, Feb 5, 2012 at 7:19 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Sun, Feb 5, 2012 at 7:33 AM, Travis Oliphant tra...@continuum.io wrote: I think supporting Python 2.5 and above is completely fine.  I'd even be in favor of bumping up to Python 2.6 for NumPy 1.7 and certainly

Re: [Numpy-discussion] On making Numpy 1.7 a long term support release.

2012-02-10 Thread mark florisson
On 5 February 2012 07:19, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Sun, Feb 5, 2012 at 7:33 AM, Travis Oliphant tra...@continuum.io wrote: I think supporting Python 2.5 and above is completely fine.  I'd even be in favor of bumping up to Python 2.6 for NumPy 1.7 and certainly for

[Numpy-discussion] simple manipulations of numpy arrays

2012-02-10 Thread Brad Reisfeld
Hi, I am relatively new to numpy and am seeking some advice on an appropriate way to do the following simple task. The idea is to build a class that will allow a user to easily remove and keep columns and rows in a 2D numpy array. An outline of the class is as follows: class

Re: [Numpy-discussion] simple manipulations of numpy arrays

2012-02-10 Thread Tom Aldcroft
This is not yet released (but will be in the near future): http://readthedocs.org/docs/astropy/en/latest/table/index.html https://github.com/astropy/astropy/blob/master/astropy/table/table.py You can at least use this as an example of how to add rows and columns to a structured array.  Or be an

[Numpy-discussion] [ANN] new solver for multiobjective optimization problems

2012-02-10 Thread Dmitrey
hi, I'm glad to inform you about new Python solver for multiobjective optimization (MOP). Some changes committed to solver interalg made it capable of handling global nonlinear constrained multiobjective problem (MOP), see the page for more details. Using interalg you can be 100% sure

Re: [Numpy-discussion] simple manipulations of numpy arrays

2012-02-10 Thread Francesc Alted
On Feb 10, 2012, at 3:29 PM, Brad Reisfeld wrote: Hi, I am relatively new to numpy and am seeking some advice on an appropriate way to do the following simple task. The idea is to build a class that will allow a user to easily remove and keep columns and rows in a 2D numpy array. clip

Re: [Numpy-discussion] simple manipulations of numpy arrays

2012-02-10 Thread Francesc Alted
On Feb 10, 2012, at 4:50 PM, Francesc Alted wrote: https://github.com/FrancescAlted/carry Hmm, this should be: https://github.com/FrancescAlted/carray Blame my (too) smart spell corrector. -- Francesc Alted ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] [ANN] new solver for multiobjective optimization problems

2012-02-10 Thread Neal Becker
And where do we find this gem? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Creating parallel curves

2012-02-10 Thread Andrea Gavana
Hi All, my apologies for my deep ignorance about math stuff; I guess I should be able to find this out but I keep getting impossible results. Basically I have a set of x, y data (around 1,000 elements each) and I want to create 2 parallel curves (offset curves) to the original one; parallel

Re: [Numpy-discussion] Creating parallel curves

2012-02-10 Thread Chris Barker
Andrea, Basically I have a set of x, y data (around 1,000 elements each) and I want to create 2 parallel curves (offset curves) to the original one; parallel means curves which are displaced from the base curve by a constant offset, either positive or negative, in the direction of the

[Numpy-discussion] trapezoidal grids

2012-02-10 Thread Hugo Gagnon
Hello, Say I have four corner points a = (X0, Y0), b = (X1, Y1), c = (X2, Y2) and d = (X3, Y3): a--b \/ \ / cd Is there a function like meshgrid that would return me a grid of points linearly interpolating those four corner points? Thanks,

Re: [Numpy-discussion] trapezoidal grids

2012-02-10 Thread Stéfan van der Walt
On Fri, Feb 10, 2012 at 9:26 AM, Hugo Gagnon sourceforge.nu...@user.fastmail.fm wrote: Hello, Say I have four corner points a = (X0, Y0), b = (X1, Y1), c = (X2, Y2) and d = (X3, Y3): a--b  \        /  \      /   cd Is there a function like meshgrid that would return me a

Re: [Numpy-discussion] [ANN] new solver for multiobjective optimization problems

2012-02-10 Thread Scott Sinclair
On 10 February 2012 17:59, Neal Becker ndbeck...@gmail.com wrote: And where do we find this gem? Presumably by following the hyper-links in the e-mail (non-obvious if you're using a plain-text mail client..) Cheers, Scott ___ NumPy-Discussion mailing