[SciPy-User] WHICH ONE IS BETTER?? Loadtxt() or open('filename', 'r') method

Renato Fabbri renato.fabbri@gmail....
Wed Dec 26 15:17:52 CST 2012


try it with ipython's timeit ;-)
or make loops and measure them with time.time() itself.

paste back results if any pls

cheers, happyman

2012/12/25 Happyman <bahtiyor_zohidov@mail.ru>:
>
> I had 120x150 matrix which I have to read Rows by Cols...
> for example:
> M=(120,150) . This matrix exists under name: BigFile.txt
> So, M=loadtxt ( 'BigFile.txt' ).
>
> After processing M matrix I have M1  matrix which has the same Row and Cols
> (120 x 150 )
>
> I saved it: savetxt ( ' Bigprocess.txt ', M1 ). The problem is I can not
> control Rows and Cols to be the same order of rows and cols as in the M
> matrix
>
> The second way: or is it better to use open ('filename.txt')  method ??????
> QUESTION:
> 1) WHich one (loadtxt and savetxt) or (open ('filename.txt') and write
> (data)) faster to write my matrix
> 2) How can I control over M1 matrix using loadtxt method??????
>
> Any answers will be appreciated!!!!
>
> --
> Новая мобильная версия @Mail.Ru.
> Все возможности в твоем мобильном - m.mail.ru
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>



-- 
GNU/Linux User #479299
labmacambira.sf.net


More information about the SciPy-User mailing list