On 8/9/06, Bob Ippolito <bob@xxxxxxxxxx> wrote:
Eh? What does scipy or numarray have to do with it? Totally different
packages. Especially scipy.
They all provide facilities for array manipulation.
import Numeric
import numarray
import scipy
n = 1500
a_numeric = Numeric.arange(1., n)
a_numarray = numarray.arange(1., n)
a_scipy = scipy.arange(1., n)
On a different node, I've attached CSV file with results from this
benchmark program, with a third test for scipy.
http://arbutus.mcmaster.ca/dmc/numpy/numcomp.py
Interestingly numarray consistently beats numeric and scipy with
arrays of length greater than 1500. With arrays smaller than 1500,
SciPy and Numeric are often on par with each other.