[Numpy-discussion] conversion to 1D array of specified dtype
Mark Bakker
markbak@gmail....
Tue Aug 31 03:57:27 CDT 2010
Hello list,
What is the easiest way to convert a function argument to at least a 1D
array of specified dtype?
atleast_1d(3,dtype='d') doesn't work (numpy 1.3.0)
array(atleast_1d(3),dtype='d') works but seems cumbersome
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100831/7fe18b53/attachment.html
More information about the NumPy-Discussion
mailing list