[Python-Dev] Matrix product

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Jul 27 09:21:39 CEST 2008


daniel.stutzbach at gmail.com wrote:

> How about just making a matrix multiply function that can take many
> arguments?  I think this is pretty readable:
> 
> mmul(a, b, c, d)

The multiplications aren't necessarily all together, e.g.

   a*b + c*d + e*f

would become

   mmul(a, b) + mmul(c, d) + mmul(e, f)

-- 
Greg


More information about the Python-Dev mailing list