Re: [Numpy-discussion] Mathematica vs Matlab vs Python

2009-07-08 Thread Stéfan van der Walt
2009/7/8 Gael Varoquaux : > On Wed, Jul 08, 2009 at 12:48:17PM -0700, Matthew Brett wrote: >> > Yup. It's not even very idiomatic Python. readlines() is probably a >> > bad idea unless your file is trivial length, and even ignoring >> > numpy.loadtxt(), all of this could be considerably simplified

Re: [Numpy-discussion] Mathematica vs Matlab vs Python

2009-07-08 Thread Gael Varoquaux
On Wed, Jul 08, 2009 at 12:48:17PM -0700, Matthew Brett wrote: > > Yup. It's not even very idiomatic Python. readlines() is probably a > > bad idea unless your file is trivial length, and even ignoring > > numpy.loadtxt(), all of this could be considerably simplified with the > > built-in csv modul

Re: [Numpy-discussion] Mathematica vs Matlab vs Python

2009-07-08 Thread Matthew Brett
Hi, > Yup. It's not even very idiomatic Python. readlines() is probably a > bad idea unless your file is trivial length, and even ignoring > numpy.loadtxt(), all of this could be considerably simplified with the > built-in csv module. or a 1-liner with scipy.io.loadmat ... Best, Matthew ___

Re: [Numpy-discussion] Mathematica vs Matlab vs Python

2009-07-08 Thread David Warde-Farley
On 8-Jul-09, at 4:19 AM, Pauli Virtanen wrote: > Tue, 07 Jul 2009 21:30:06 -0500, alan kirjoitti: >> Mathematica vs Matlab vs Python >> >> http://www.larssono.com/musings/matmatpy/index.html > > The Python code there is not very idiomatic Numpy code. It's written > for > Numeric, and fancy index

Re: [Numpy-discussion] Mathematica vs Matlab vs Python

2009-07-08 Thread Pauli Virtanen
Tue, 07 Jul 2009 21:30:06 -0500, alan kirjoitti: > Mathematica vs Matlab vs Python > > http://www.larssono.com/musings/matmatpy/index.html The Python code there is not very idiomatic Numpy code. It's written for Numeric, and fancy indexing etc. are not used. Seems like the author also left it a

[Numpy-discussion] Mathematica vs Matlab vs Python

2009-07-07 Thread alan
Mathematica vs Matlab vs Python http://www.larssono.com/musings/matmatpy/index.html -- --- | Alan K. Jackson| To see a World in a Grain of Sand | | a...@ajackson.org | And a Heaven in a Wild Flower,