22 Dec
2010
22 Dec
'10
7:08 p.m.
Hi Chris, Just as a point of clarification,
I suspect you mean a one-dimensional array, instead of a multidimensional array (ndarray) here? If not, what are the other dimensions for?
An "ndarray" is the name of the numpy ndimensional array object type. Matt was trying to clarify that it is a numpy array rather than a native python list, not specifying that it is N-dimensional in the sense of greater than one. An ndarray could be one-dimensional, for example: $ python -c "import numpy as na; a = na.zeros(10); print a.__class__" <type 'numpy.ndarray'> j