[SciPy-user] List Conversion to SciPy Array

lorenzo bolla lbolla@gmail....
Thu Feb 21 05:47:26 CST 2008


what's wrong with using: numpy.asarray?
L.


On 2/21/08, Lorenzo Isella <lorenzo.isella@gmail.com> wrote:
>
> Dear All,
> So far I have mainly used arrays for my computations. Simply, I had no
> particular need of lists, dictionaries and so on.
> A library I am using extensively right now, has to be fed with lists
> (so I have to use a tolist command to convert arrays into lists) and
> it also returns lists.
> However, then I do miss badly SciPy's tools to manipulate them.
> At the moment, the best I can do is to create empty SciPy's arrays and
> copy element-wise (with loops) the list content into them.
> Is there a "better" way of doing this? I googled  "toarray" and I gave
> it some try, but unsuccessfully.
> Many thanks
>
> Lorenzo
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>



-- 
Lorenzo Bolla
lbolla@gmail.com
http://lorenzobolla.emurse.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20080221/3c0e52ac/attachment-0001.html 


More information about the SciPy-user mailing list