aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/benchmarkXcwise.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-07-08 07:56:01 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-07-08 07:56:01 +0000
commit6f09d3a67d333d68e7c971147ec77600e86e93f3 (patch)
tree36095d2bb12c0b02b9688775f60ee5531d2b0372 /bench/benchmarkXcwise.cpp
parentf5791eeb7054b78ded6eb080e9712651da6c6a34 (diff)
- many updates after Cwise change
- fix compilation in product.cpp with std::complex - fix bug in MatrixBase::operator!=
Diffstat (limited to 'bench/benchmarkXcwise.cpp')
-rw-r--r--bench/benchmarkXcwise.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/benchmarkXcwise.cpp b/bench/benchmarkXcwise.cpp
index 9b394ff35..b54f1f4a7 100644
--- a/bench/benchmarkXcwise.cpp
+++ b/bench/benchmarkXcwise.cpp
@@ -27,7 +27,7 @@ int main(int argc, char *argv[])
}
for(int a = 0; a < REPEAT; a++)
{
- m = VECTYPE::ones(VECSIZE) + 0.00005 * (m.cwiseProduct(m) + m/4);
+ m = VECTYPE::ones(VECSIZE) + 0.00005 * (m.cwise().square() + m/4);
}
cout << m[0] << endl;
return 0;