[SciPy-user] what does 'd' mean in array([0.0, 1.0, 2.0, 3.0], 'd')
Matthieu Brucher
matthieu.brucher at gmail.com
Thu Aug 30 11:46:09 EDT 2007
2007/8/30, dmitrey <openopt at ukr.net>:
>
> hi all,
> during debug I obtain
> >>> x
> array([0.5, 1.5, 2.5, 3.5], 'd')
>
> What does this 'd' mean?
It's the type of the array (I think), and in this case, it indicates a
double array IIRC.
How can I construct a = array(something) to obtain array of same type?
numpy.array([0.5, 1.5, 2.5, 3.5], dtype = 'd')
Matthieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20070830/d56e44da/attachment.html>
More information about the SciPy-User
mailing list