Matrix multiplication: Difference between revisions
no edit summary
Walterpachl (talk | contribs) (→{{header|REXX}}: add Signal on Syntax) |
No edit summary |
||
Line 2,083:
=={{header|Emacs Lisp}}==
<syntaxhighlight lang="lisp">
(defvar M1 '((2 1 4)
▲ (0 1 1)))
(apply #'seq-mapn #'list M2)))
▲ (m2 '((6 3 -1 0)
▲ (seq-map (lambda (item) (format "%5s " item)) line) ) ) ) ) )
</syntaxhighlight>
{{out}}
<pre>
▲ -1 6 0 6
</pre>
|