[SciPy-user] what does 'd' mean in array([0.0, 1.0, 2.0, 3.0], 'd')

Matthieu Brucher matthieu.brucher@gmail....
Thu Aug 30 10:46:09 CDT 2007


2007/8/30, dmitrey <openopt@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://projects.scipy.org/pipermail/scipy-user/attachments/20070830/d56e44da/attachment.html 


More information about the SciPy-user mailing list