[Numpy-discussion] Looking for description/insight/documentation on matmul

jeff saremi jeffsaremi at hotmail.com
Mon Jul 9 12:48:08 EDT 2018


Is there any resource available or anyone who's able to describe matmul operation of matrices when n > 2?

The only description i can find is: "If either argument is N-D, N > 2, it is treated as a stack of matrices residing in the last two indexes and broadcast accordingly." which is very cryptic to me.
Could someone break this down please?
when a [2 3 5 6] is multiplied by a [7 8 9] what are the resulting dimensions? is there one answer to that? Is it deterministic?
What does "residing in the last two indices" mean? What is broadcast and where?
thanks
jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180709/dbc6abe5/attachment.html>


More information about the NumPy-Discussion mailing list