summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/parallel.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/parallel.hs b/examples/parallel.hs
index 435e367..c82114f 100644
--- a/examples/parallel.hs
+++ b/examples/parallel.hs
@@ -15,10 +15,10 @@ parMul p x y = fromBlocks [ inParallel ( map (x <>) ys ) ]
15main = do 15main = do
16 n <- (read . head) `fmap` getArgs 16 n <- (read . head) `fmap` getArgs
17 let m = ident n :: Matrix Double 17 let m = ident n :: Matrix Double
18 time $ print $ vectorMax $ takeDiag $ m <> m 18 time $ print $ maxElement $ takeDiag $ m <> m
19 time $ print $ vectorMax $ takeDiag $ parMul 2 m m 19 time $ print $ maxElement $ takeDiag $ parMul 2 m m
20 time $ print $ vectorMax $ takeDiag $ parMul 4 m m 20 time $ print $ maxElement $ takeDiag $ parMul 4 m m
21 time $ print $ vectorMax $ takeDiag $ parMul 8 m m 21 time $ print $ maxElement $ takeDiag $ parMul 8 m m
22 22
23time act = do 23time act = do
24 t0 <- getClockTime 24 t0 <- getClockTime