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