Loop in list.

beliavsky at aol.com beliavsky at aol.com
Thu Feb 10 06:57:13 EST 2005


Jim wrote:
> Wow!  All I wanted to do was write the equivalence
> of the Fortran statement:  Real*4 matrix(n,n).

If you are doing numerical linear algebra in Python, you should use the
Numeric or Numarray modules. With Numeric, the equivalent is just

from Numeric import zeros
matrix = zeros([n,n],Float)




More information about the Python-list mailing list