aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-03-31 16:20:06 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-03-31 16:20:06 +0000
commitcff5e3ce9c1e09553125bce464b9c80f8bc2eb76 (patch)
tree0f8f098cdc4c07a1bc7b76d771fc22eb7e32261d /bench
parentf279162ec4f01ecec8fa37eae02757720e16e65b (diff)
Make use of the LazyBit, introduce .lazy(), remove lazyProduct.
Diffstat (limited to 'bench')
-rw-r--r--bench/basicbenchmark.h4
-rwxr-xr-xbench/benchmark_suite16
2 files changed, 10 insertions, 10 deletions
diff --git a/bench/basicbenchmark.h b/bench/basicbenchmark.h
index c37d05ad4..3a6695e2f 100644
--- a/bench/basicbenchmark.h
+++ b/bench/basicbenchmark.h
@@ -13,13 +13,13 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations)
{
asm("#begin_bench_loop LazyEval");
if (MatrixType::SizeAtCompileTime!=Eigen::Dynamic) asm("#fixedsize");
- m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
+ m = (I + 0.00005 * (m + m.lazy() * m)).eval();
}
else if (Mode==OmpEval)
{
asm("#begin_bench_loop OmpEval");
if (MatrixType::SizeAtCompileTime!=Eigen::Dynamic) asm("#fixedsize");
- m = (I + 0.00005 * (m + m.lazyProduct(m))).evalOMP();
+ m = (I + 0.00005 * (m + m.lazy() * m)).evalOMP();
}
else
{
diff --git a/bench/benchmark_suite b/bench/benchmark_suite
index 9ddfccbf6..a8fc6dced 100755
--- a/bench/benchmark_suite
+++ b/bench/benchmark_suite
@@ -1,17 +1,17 @@
#!/bin/bash
-echo "Fixed size 3x3, ColumnMajor, -DNDEBUG"
+echo "Fixed size 3x3, column-major, -DNDEBUG"
$CXX -O3 -I .. -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark >/dev/null
-echo "Fixed size 3x3, ColumnMajor, with asserts"
+echo "Fixed size 3x3, column-major, with asserts"
$CXX -O3 -I .. benchmark.cpp -o benchmark && time ./benchmark >/dev/null
-echo "Fixed size 3x3, RowMajor, -DNDEBUG"
+echo "Fixed size 3x3, row-major, -DNDEBUG"
$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark >/dev/null
-echo "Fixed size 3x3, RowMajor, with asserts"
+echo "Fixed size 3x3, row-major, with asserts"
$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR benchmark.cpp -o benchmark && time ./benchmark >/dev/null
-echo "Dynamic size 20x20, ColumnMajor, -DNDEBUG"
+echo "Dynamic size 20x20, column-major, -DNDEBUG"
$CXX -O3 -I .. -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
-echo "Dynamic size 20x20, ColumnMajor, with asserts"
+echo "Dynamic size 20x20, column-major, with asserts"
$CXX -O3 -I .. benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
-echo "Dynamic size 20x20, RowMajor, -DNDEBUG"
+echo "Dynamic size 20x20, row-major, -DNDEBUG"
$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
-echo "Dynamic size 20x20, RowMajor, with asserts"
+echo "Dynamic size 20x20, row-major, with asserts"
$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null