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

Robert Kern robert.kern@gmail....
Tue Jan 20 21:00:14 CST 2009

On Tue, Jan 20, 2009 at 20:57, Neal Becker <ndbecker2@gmail.com> 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 are wrappers around boost::ublas.  The
> conversion must be falling back on a very inefficient method since there is no
> special code to handle numpy vectors.
> Not sure what is the best solution.  It would be _great_ if I could make
> boost::python objects that export a buffer interface, but I have absolutely
> no idea how to do this (and so far noone else has volunteered any info on
> this).

Who's not volunteering information, boost::python or us?

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

More information about the Numpy-discussion mailing list