On 5/2/07, Pierre GM <[EMAIL PROTECTED]> wrote:
Mark, In your example: > >>> b = asarray(3,'d') b is really a numpy scalar, so it doesn't have a length. But it does have a size (1) and a ndim (0). If you need to have arrays with a length, you can force the array to have a dimension 1 with atleast_1d(b) or array(b,copy=False,ndmin=1)
Or just array([1],'d') Chuck
_______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
