<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Looks great. thanks a lot</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> NumPy-Discussion <numpy-discussion-bounces+jeffsaremi=hotmail.com@python.org> on behalf of Stephan Hoyer <shoyer@gmail.com><br>
<b>Sent:</b> Monday, July 9, 2018 10:50 AM<br>
<b>To:</b> Discussion of Numerical Python<br>
<b>Subject:</b> Re: [Numpy-discussion] Looking for description/insight/documentation on matmul</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div>
<div dir="ltr">
<div>Hi Jeff,</div>
<div><br>
</div>
<div>I think PEP 465 would be the definitive reference here. See the section on "Intended usage details" in
<a href="https://www.python.org/dev/peps/pep-0465/">https://www.python.org/dev/peps/pep-0465/</a></div>
<div><br>
</div>
<div>Cheers,</div>
<div>Stephan</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr">On Mon, Jul 9, 2018 at 9:48 AM jeff saremi <<a href="mailto:jeffsaremi@hotmail.com">jeffsaremi@hotmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Is there any resource available or anyone who's able to describe matmul operation of matrices when n > 2?</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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. </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Could someone break this down please? </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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?</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
What does "residing in the last two indices" mean? What is broadcast and where?</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
thanks</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
jeff</div>
</div>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org" target="_blank">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote>
</div>
</div>
</body>
</html>