diff options
Diffstat (limited to 'bench')
-rw-r--r-- | bench/benchmark.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bench/benchmark.cpp b/bench/benchmark.cpp index 39ed317aa..53693cbf6 100644 --- a/bench/benchmark.cpp +++ b/bench/benchmark.cpp @@ -18,6 +18,17 @@ USING_PART_OF_NAMESPACE_EIGEN int main(int argc, char *argv[]) { + Matrix4i m1, m2, m3; + m1.setRandom(); + m2.setConstant(2); + int s1 = 2; + m3 = m1; + std::cout << m1 << "\n\n"; + std::cout << m2 << "\n\n"; + m3 = m1.cwiseProduct(m2); + std::cout << m3 << "\n==\n" << m1*s1 << "\n\n"; +// v(1,2,3,4); +// std::cout << v * 2 << "\n"; Matrix<SCALAR,MATSIZE,MATSIZE> I = Matrix<SCALAR,MATSIZE,MATSIZE>::ones(); Matrix<SCALAR,MATSIZE,MATSIZE> m; for(int i = 0; i < MATSIZE; i++) |