[SciPy-user] SciPy and Cython

Robert Kern robert.kern@gmail....
Mon Jan 19 13:09:33 CST 2009


On Mon, Jan 19, 2009 at 12:41, Lorenzo Isella <lorenzo.isella@gmail.com> wrote:
> Dear All,
> I am used to resorting to f2py for the numerical intensive bottlenecks
> of my Python codes.
> However, I have recently come across Cython. From the examples on:
> http://docs.cython.org/docs/tutorial.html#the-basics-of-cython
> it looks like I can directly write my functions in Python and then
> easily build a Cython extension.
> This sounds sweet music to me, but the fact is that more often than
> now my functions would need a scipy array as an input.
> I read somewhere that Cython is better integrated with numpy rather
> than scipy; is this really the case?

There is no such thing as a scipy array. scipy uses numpy.

-- 
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 SciPy-user mailing list