[SciPy-user] scipy.f2py and Numeric arrays

Chris Fonnesbeck fonnesbeck at gmail.com
Wed Nov 9 10:23:59 CST 2005

It appears that passing Numeric arrays to extensions built with
scipy.f2py do not work.

(Pdb) _poisson(x,mu)          <==== These arguments are Numeric arrays
Out[2]: nan
(Pdb) _poisson(scipy.array(x),scipy.array(mu))
Out[2]: -146.43360900878906
(Pdb) _poisson(x.tolist(),mu.tolist())
Out[2]: -146.43360900878906

Is this intended behaviour? I still need to be able to use Numeric
arrays until scipy_core becomes more stable.

Chris Fonnesbeck
Atlanta, GA

More information about the SciPy-user mailing list