We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c850b4 + 54b2fc1 commit 545c4b9Copy full SHA for 545c4b9
dense-linear-algebra/src/Statistics/Matrix/Fast.hs
@@ -30,8 +30,8 @@ multiply m1@(Matrix r1 _ _) m2@(Matrix _ c2 _) = runST $ do
30
unsafeFreeze m3
31
32
accum :: Int -> Matrix -> Int -> Matrix -> Double
33
-accum ithrow (Matrix r1 c1 v1) jthcol (Matrix _ c2 v2) = sub 0 0
34
- where sub !acc !ij | ij == r1 = acc
+accum ithrow (Matrix _ c1 v1) jthcol (Matrix _ c2 v2) = sub 0 0
+ where sub !acc !ij | ij == c1 = acc
35
| otherwise = sub ( valRow*valCol + acc ) (ij+1)
36
where
37
valRow = U.unsafeIndex v1 (ithrow*c1 + ij)
0 commit comments