Matrix multiplication: Difference between revisions
Content added Content deleted
Alpha bravo (talk | contribs) m (→Using Objects) |
(add BQN) |
||
Line 857: | Line 857: | ||
29 40 51 |
29 40 51 |
||
39 54 69</pre> |
39 54 69</pre> |
||
=={{header|BQN}}== |
|||
<code>Mul</code> is a matrix multiplication idiom from [https://mlochbaum.github.io/bqncrate/ BQNcrate.] |
|||
<lang bqn>Mul ← +˝∘×⎉1‿∞ |
|||
(>⟨ |
|||
⟨1, 2, 3⟩ |
|||
⟨4, 5, 6⟩ |
|||
⟨7, 8, 9⟩ |
|||
⟩) Mul >⟨ |
|||
⟨1, 2, 3, 4⟩ |
|||
⟨5, 6, 7, 8⟩ |
|||
⟨9, 10, 11, 12⟩ |
|||
⟩</lang><lang bqn>┌─ |
|||
╵ 20 23 26 29 |
|||
56 68 80 92 |
|||
92 113 134 155 |
|||
┘</lang> |
|||
[https://mlochbaum.github.io/BQN/try.html#code=TXVsIOKGkCAry53iiJjDl+KOiTHigL/iiJ4KCig+4p+oCiAg4p+oMSwgMiwgM+KfqQogIOKfqDQsIDUsIDbin6kKICDin6g3LCA4LCA54p+pCuKfqSkgTXVsID7in6gKICDin6gxLCAgMiwgIDMsIDTin6kKICDin6g1LCAgNiwgIDcsIDjin6kKICDin6g5LCAxMCwgMTEsIDEy4p+pCuKfqQo= Try It!] |
|||
=={{header|Burlesque}}== |
=={{header|Burlesque}}== |