matrix multiplication
Seb
spluque at gmail.com
Mon Feb 26 11:53:54 EST 2018
On Sun, 25 Feb 2018 18:52:14 -0500,
Terry Reedy <tjreedy at udel.edu> wrote:
[...]
> numpy has a matrix multiply function and now the '@' matrix multiply
> operator.
Yes, but what I was wondering is whether there's a faster way of
multiplying each row (1x3) of a matrix by another matrix (3x3), compared
to looping through the matrix row by row as shown in the code. Perhaps
I'm not understanding how to use the broadcasting features of `matmul`.
--
Seb
More information about the Python-list
mailing list