[Tutor] Matrix

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Mon Dec 20 20:46:57 CET 2004



On Sun, 19 Dec 2004, Bugra Cakir wrote:

> I want to create a matrix in Python. For example 3x4 how can i
> create this? thanks


Hi Bugra,

Just for reference, here's the relevant FAQ about how to do matrices in
Python:

http://python.org/doc/faq/programming.html#how-do-i-create-a-multidimensional-list


If you're planning to do a lot of matrix-y stuff, you may want to look
into the 'numarray' third-module:

    http://www.stsci.edu/resources/software_hardware/numarray

The package adds powerful matrix operations to Python.


Good luck to you!



More information about the Tutor mailing list