Re: [Numpy-discussion] python numpy code many times slower than c++

2009-01-20 Thread T J
On Tue, Jan 20, 2009 at 6:57 PM, Neal Becker wrote: > It seems the big chunks of time are used in data conversion between numpy > and my own vectors classes. Mine are wrappers around boost::ublas. The > conversion must be falling back on a very inefficient method since there is no > special code

Re: [Numpy-discussion] python numpy code many times slower than c++

2009-01-20 Thread Robert Kern
On Tue, Jan 20, 2009 at 20:57, Neal Becker wrote: > I see the problem. Thanks for the great profiler! You ought to make this > more widely known. I'll be making a release shortly. > It seems the big chunks of time are used in data conversion between numpy > and my own vectors classes. Mine a

Re: [Numpy-discussion] python numpy code many times slower than c++

2009-01-20 Thread Neal Becker
Robert Kern wrote: > 2009/1/20 Neal Becker : >> I tried a little experiment, implementing some code in numpy (usually I >> build modules in c++ to interface to python). Since these operations are >> all large vectors, I hoped it would be reasonably efficient. >> >> The code in question is simple.

Re: [Numpy-discussion] python numpy code many times slower than c++

2009-01-20 Thread Robert Kern
On Tue, Jan 20, 2009 at 20:44, Neal Becker wrote: > Robert Kern wrote: > >> 2009/1/20 Neal Becker : >>> I tried a little experiment, implementing some code in numpy (usually I >>> build modules in c++ to interface to python). Since these operations are >>> all large vectors, I hoped it would be r

Re: [Numpy-discussion] python numpy code many times slower than c++

2009-01-20 Thread Neal Becker
Robert Kern wrote: > 2009/1/20 Neal Becker : >> I tried a little experiment, implementing some code in numpy (usually I >> build modules in c++ to interface to python). Since these operations are >> all large vectors, I hoped it would be reasonably efficient. >> >> The code in question is simple.

Re: [Numpy-discussion] python numpy code many times slower than c++

2009-01-20 Thread Robert Kern
2009/1/20 Neal Becker : > I tried a little experiment, implementing some code in numpy (usually I > build modules in c++ to interface to python). Since these operations are > all large vectors, I hoped it would be reasonably efficient. > > The code in question is simple. It is a model of an ampli

Re: [Numpy-discussion] python numpy code many times slower than c++

2009-01-20 Thread Robert Kern
2009/1/20 Neal Becker : > I tried a little experiment, implementing some code in numpy (usually I > build modules in c++ to interface to python). Since these operations are > all large vectors, I hoped it would be reasonably efficient. > > The code in question is simple. It is a model of an ampli

[Numpy-discussion] python numpy code many times slower than c++

2009-01-20 Thread Neal Becker
I tried a little experiment, implementing some code in numpy (usually I build modules in c++ to interface to python). Since these operations are all large vectors, I hoped it would be reasonably efficient. The code in question is simple. It is a model of an amplifier, modeled by it's AM/AM an

Re: [Numpy-discussion] Please don't use google code for hosting

2009-01-20 Thread Robert Kern
On Mon, Jan 19, 2009 at 12:26, Tim Michelsen wrote: > Hello, > last year there has been a discussion on this on the OSGEO list about > the same issue. > > You may check oggeo.discuss at Gmane or Nabble for it. I must say that Wilfred L. Guerin's opinions on the subject were quite entertaining and

Re: [Numpy-discussion] Please don't use google code for hosting

2009-01-20 Thread Tim Michelsen
Hello, last year there has been a discussion on this on the OSGEO list about the same issue. You may check oggeo.discuss at Gmane or Nabble for it. Kind regards, Timmie ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy

Re: [Numpy-discussion] Examples for numpy.genfromtxt

2009-01-20 Thread Pierre GM
Till I write some proper doc, you can check the examples in tests/ test_io (TestFromTxt suitcase) On Jan 20, 2009, at 4:17 AM, Nils Wagner wrote: > Hi all, > > Where can I find some sophisticated examples for the usage > of numpy.genfromtxt ? > > > Nils > ___

Re: [Numpy-discussion] ANN: Numexpr 1.1, an efficient array evaluator

2009-01-20 Thread Andrew Collette
Works much, much better with the current svn version. :) Numexpr now outperforms everything except the "simple" technique, and then only for small data sets. Along the lines you mentioned I noticed that simply changing from a shape of (100*100*100,) to (100, 100, 100) results in nearly a factor of

Re: [Numpy-discussion] Please don't use google code for hosting

2009-01-20 Thread Fernando Perez
On Mon, Jan 19, 2009 at 11:20 AM, Matthew Brett wrote: > Hi, > >> Do you also know how the situation is with sourceforge/launchpad/trac... >> and other popular hosting systems ? >> Do they also have these restrictions ? > > I've not noticed any problems with sourceforge, nor launchpad - I'm > usin

Re: [Numpy-discussion] ANN: Numexpr 1.1, an efficient array evaluator

2009-01-20 Thread Francesc Alted
A Tuesday 20 January 2009, Andrew Collette escrigué: > Hi Francesc, > > Looks like a cool project! However, I'm not able to achieve the > advertised speed-ups. I wrote a simple script to try three > approaches to this kind of problem: > > 1) Native Python code (i.e. will try to do everything at o

[Numpy-discussion] Examples for numpy.genfromtxt

2009-01-20 Thread Nils Wagner
Hi all, Where can I find some sophisticated examples for the usage of numpy.genfromtxt ? Nils ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion