diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-07-09 16:46:26 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-07-09 16:46:26 +0000 |
commit | 25904802bc7a17f3436479a414234486ff4e084e (patch) | |
tree | af1be1eec263a94c09e81fca8890f83451612171 | |
parent | 8f21a5e8621d25080b9ccc1f2b6765f8bc49af0f (diff) |
raah, results were corrupted by overflow. Now slice vectorization is
about a +25% speedup which is still nice as i expected zero or even
negative benefit.
-rw-r--r-- | bench/benchmarkSlice.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bench/benchmarkSlice.cpp b/bench/benchmarkSlice.cpp index 197fe2488..11cbf090f 100644 --- a/bench/benchmarkSlice.cpp +++ b/bench/benchmarkSlice.cpp @@ -29,6 +29,7 @@ int main(int argc, char *argv[]) m.block(r,c,nr,nc) += Mat::ones(nr,nc); m.block(r,c,nr,nc) *= SCALAR(10); m.block(r,c,nr,nc) -= Mat::constant(nr,nc,10); + m.block(r,c,nr,nc) /= SCALAR(10); } cout << m[0] << endl; return 0; |