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

Stephan Hoyer shoyer at gmail.com
Mon Jul 9 13:50:21 EDT 2018


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,
Stephan

On Mon, Jul 9, 2018 at 9:48 AM jeff saremi <jeffsaremi at hotmail.com> 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
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180709/d5ef5135/attachment.html>


More information about the NumPy-Discussion mailing list