[Numpy-discussion] array of matrices

Bryan Cole bryan@cole.uklinux....
Fri Mar 27 17:38:25 CDT 2009


I have a number of arrays of shape (N,4,4). I need to perform a
vectorised matrix-multiplication between pairs of them I.e.
matrix-multiplication rules for the last two dimensions, usual
element-wise rule for the 1st dimension (of length N). 

(How) is this possible with numpy?

thanks,

BC




More information about the Numpy-discussion mailing list