Is numarray matrixmultiply supposed to transpose the secondargument?

Raoul Meuldijk meuldijk at jupiterisbig.yahoo.com
Tue Jul 20 04:48:10 EDT 2004


> Okay, I was using 0.9.  Upgrading to 1.0 confirms the error.  This is a
> bug in numarray, but it has already been fixed in CVS.  As a temporary
> fix, use the original Python definition (ripped from numarraycore.py):
> 
> def dot(array1, array2):
>     return ufunc.innerproduct(array1, swapaxes(array2, -1, -2))
> 
> matrixmultiply = dot
> 
> This will fix both matrixmultiply and dot, as they are both affected by 
> the bug.
> 
Your fix works perfectly! Thanks!

Raoul



More information about the Python-list mailing list