Matrix multiplication: Difference between revisions
Content deleted Content added
Added Uiua solution |
|||
Line 6,354: | Line 6,354: | ||
[50, 40, 30, 20, 10], |
[50, 40, 30, 20, 10], |
||
[50, 40, 30, 20, 10]] |
[50, 40, 30, 20, 10]] |
||
</pre> |
|||
=={{header|Uiua}}== |
|||
<syntaxhighlight lang="uiua"> |
|||
MatMul ← ≡(≡(/+×)¤:⍉)¤ |
|||
[[2 1 4] |
|||
[0 1 1]] |
|||
[[6 3 ¯1 0] |
|||
[1 1 0 4] |
|||
[¯2 5 0 2]] |
|||
MatMul |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
╭─ |
|||
╷ 5 27 ¯2 12 |
|||
¯1 6 0 6 |
|||
╯ |
|||
</pre> |
</pre> |
||