Matrix operations

jjthrash at nowhere.com jjthrash at nowhere.com
Thu May 27 10:33:25 EDT 1999


puetsch at gmx.de (Felix Puetsch) writes:
> How do I implement best matrix operations? Is using some sort of
> dictionary the best way? Or should it rather be done with lists and
> some 2D-to-linear index transformation [ (i,j)->(n*i+j) ] ?

There probably are some in existance.  Look at the modules section
of the Python website (http://www.python.org).
To do it yourself, you could write a class that implements certain
methods, like __rmul__ (I think), that handles right-multiplications.
Look at the Python Language Reference for more details.

Jimmy

reply to jimmy at linuxstart dot com




More information about the Python-list mailing list