summaryrefslogtreecommitdiff
path: root/examples/parallel.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/parallel.hs')
-rw-r--r--examples/parallel.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/parallel.hs b/examples/parallel.hs
index 8653bc3..9d5ae3b 100644
--- a/examples/parallel.hs
+++ b/examples/parallel.hs
@@ -5,8 +5,7 @@ import Numeric.LinearAlgebra
5import Control.Parallel.Strategies 5import Control.Parallel.Strategies
6import System.Time 6import System.Time
7 7
8inParallel = parMap rnf id 8inParallel = parMap rwhnf id
9-- rwhnf also works in this case
10 9
11-- matrix product decomposed into p parallel subtasks 10-- matrix product decomposed into p parallel subtasks
12parMul p x y = fromBlocks [ inParallel ( map (x <>) ys ) ] 11parMul p x y = fromBlocks [ inParallel ( map (x <>) ys ) ]