Matrix Multiplication
Jeremy Sanders
jeremy+complangpython at jeremysanders.net
Mon Jun 18 05:20:39 EDT 2007
sturlamolden wrote:
> Use numpy: www.scipy.org
>
> NumPy has a matrix type that overloads the * operator.
Just a tiny followup, which may be important unless you carefully read the
documentation. The "*" operator doesn't do matrix multiplication for normal
numpy arrays - you do need to use its special matrix type to get this. You
can use the dot function to get matrix multiplication with its normal
arrays.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
More information about the Python-list
mailing list