Hi, I don't know about documentation, but I always use syntax like zeros(10, dtype=numpy.float64) where you have dtypes like numpy.int8 numpy.uint32 numpy.complex128 # == two numpy.float64, one for real, one for imag. etc. This is usually less confusing to my mind. One caveat: floats above 64 bits are not always supported and rarely what you think - see another discussion on this list a few weeks back.
Cheers Paul On 28. nov. 2011, at 09:10, Mads Ipsen wrote: > Hi, > > Where can I find a complete and exhaustive description of the dtype syntax > and arguments. For example, something like > > a = arange(4, dtype='=H') > > seems hard to extract from the documentation that I can find on the web and > the numpy docstrings. > > Best regards > > Mads > -- > +-----------------------------------------------------+ > | Mads Ipsen | > +----------------------+------------------------------+ > | Gåsebæksvej 7, 4. tv | | > | DK-2500 Valby | phone: +45-29716388 | > | Denmark | email: > mads.ip...@gmail.com > | > +----------------------+------------------------------+ > > > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion