This is an old copy of the Python FAQ. The information here may be outdated.

How do I perform matrix operations using Python?

The Python FAQ has an entry on how to create multidimensional lists:

how-do-i-create-a-multidimensional-list

You may also want to look into the ‘numpy’ module which contains many resources for scientific computing, including powerful matrix operations: http://numeric.scipy.org/

CATEGORY: tutor

 

A Django site. rendered by a django application. hosted by webfaction.