# Looking for description/insight/documentation on matmul

5 messages
Open this post in threaded view
|

## Looking for description/insight/documentation on matmul

 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 _______________________________________________ NumPy-Discussion mailing list [hidden email] https://mail.python.org/mailman/listinfo/numpy-discussion
Open this post in threaded view
|

## Re: Looking for description/insight/documentation on matmul

 Hi Jeff,I think PEP 465 would be the definitive reference here. See the section on "Intended usage details" in https://www.python.org/dev/peps/pep-0465/Cheers,StephanOn Mon, Jul 9, 2018 at 9:48 AM jeff saremi <[hidden email]> wrote: 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 _______________________________________________ NumPy-Discussion mailing list [hidden email] https://mail.python.org/mailman/listinfo/numpy-discussion _______________________________________________ NumPy-Discussion mailing list [hidden email] https://mail.python.org/mailman/listinfo/numpy-discussion
Open this post in threaded view
|