From 8429fa9fdad89f8c99e4fa176a182df3cf8b5f42 Mon Sep 17 00:00:00 2001 From: Andrew Palumbo Date: Sat, 25 Mar 2017 21:23:38 -0700 Subject: [PATCH] fix flipped sign in example. --- examples/bin/SparseSparseDrmTimer.mscala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bin/SparseSparseDrmTimer.mscala b/examples/bin/SparseSparseDrmTimer.mscala index d01bf3ac6b..947dd73f18 100644 --- a/examples/bin/SparseSparseDrmTimer.mscala +++ b/examples/bin/SparseSparseDrmTimer.mscala @@ -9,7 +9,7 @@ def timeSparseDRMMMul(m: Int, n: Int, s: Int, para: Int, pctDense: Double = .20, val R = scala.util.Random R.setSeed(seed) val blockB = new SparseRowMatrix(block.nrow, block.ncol) - blockB := {x => if (R.nextDouble > pctDense) R.nextDouble else x } + blockB := {x => if (R.nextDouble < pctDense) R.nextDouble else x } (keys -> blockB) } val drmB = drmParallelizeEmpty(s , n, para).mapBlock(){ @@ -17,7 +17,7 @@ def timeSparseDRMMMul(m: Int, n: Int, s: Int, para: Int, pctDense: Double = .20, val R = scala.util.Random R.setSeed(seed + 1) val blockB = new SparseRowMatrix(block.nrow, block.ncol) - blockB := {x => if (R.nextDouble > pctDense) R.nextDouble else x } + blockB := {x => if (R.nextDouble < pctDense) R.nextDouble else x } (keys -> blockB) }