Jump to content

Matrix multiplication: Difference between revisions

→‎{{header|Raku}}: use cross meta-operator in last version
(→‎{{header|Raku}}: last version is not really more concise, rather more functional. + style code tweak)
(→‎{{header|Raku}}: use cross meta-operator in last version)
Line 5,587:
 
<syntaxhighlight lang="raku" line>sub infix:<·> { [+] @^a Z* @^b }
sub infix:<×>(@A, @B) { (@A X· [Z] @B).rotor(@B) }
}</syntaxhighlight>
cross(@A, ([Z] @B), with => &[·])
.rotor(@B);
}</syntaxhighlight>
 
=={{header|Rascal}}==
1,934

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.