Matrix multiplication: Difference between revisions
→With List and without transpose - shorter
Line 2,250:
===With List and without transpose - shorter===
<lang Haskell>mult:: Num a => [[a]] -> [[a]] -> [[a]]
mult uss vss = map (
main = mapM_ print $ mult [[1, 2],[3, 4]] [[-3, -8, 3],[-2, 1, 4]]</lang>
|