Hello -
I try to convert an input argument to an array of floats.
Input can be an array of integers or floats, or scalar integers or
floats.
The latter seem to give a problem, as they return an array that
doesn't have a length.
I don't quite understand what b really is in the example below.
Doesn't every array have a length?
Is this a bug or a feature?
Thanks, Mark
>>> b = asarray(3,'d')
>>> size(b)
1
>>> len(b)
Traceback (most recent call last):
File "<pyshell#20>", line 1, in ?
len(b)
TypeError: len() of unsized object
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion