<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi,<br>
<br>
that would be more like an outer product:<br>
<br>
</font><font face="Courier New, Courier, monospace"><b> a←b←5
3⍴⍳8</b><b><br>
</b><b> ⍴a∘.=b</b><b><br>
</b><b>5 3 5 3</b></font><br>
<br>
The inner product reduces away the two middle axes of the outer
product.<br>
<br>
In the <b>⍉b</b> case you have<br>
<br>
<br>
<font face="Courier New, Courier, monospace"><b> ⍴a∘.=⍉b</b><b><br>
</b><b>5 3 3 5</b><b><br>
</b><b><br>
</b><b> ⍴a+.=⍉b</b><b><br>
</b><b>5 5</b></font><br>
<br>
That is, BTW, the reason while the last axis of a and the first axis
of b must match; otherwise<br>
the right function of . would get a length error.<br>
<br>
/// Jürgen<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 03/17/2017 06:14 PM, <a class="moz-txt-link-abbreviated" href="mailto:***@gmx.com">***@gmx.com</a>
wrote:<br>
</div>
<blockquote cite="mid:***@gmx.com"
type="cite">
<pre wrap="">thanks
i have no clue how the result of a+.=⍉b as 5x5 result is obtained from a 5x3 array and 3x5 array shouldn't it be a 15x15 result ... but i guess i really just want to use +/a=b :)
On Fri, 17 Mar 2017 12:26:42 -0400
Christian Robert <a class="moz-txt-link-rfc2396E" href="mailto:***@polymtl.ca"><***@polymtl.ca></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> a+.=⍉b
3 0 0 0 0
0 3 0 0 0
0 0 3 0 0
0 0 0 3 0
0 0 0 0 3
On 2017-03-17 12:17, <a class="moz-txt-link-abbreviated" href="mailto:***@gmx.com">***@gmx.com</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi
what am i missing here?
a←b←5 3⍴⍳8
a=b
+/a=b
a+.=b length error
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>