RosettaCodeData/Task/Matrix-multiplication/Futhark/matrix-multiplication.futhark
2023-07-01 13:44:08 -04:00

4 lines
158 B
Text

fun main(x: [n][m]int, y: [m][p]int): [n][p]int =
map (fn xr => map (fn yc => reduce (+) 0 (zipWith (*) xr yc))
(transpose y))
x