aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-04-26 20:28:27 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-04-26 20:28:27 +0000
commit1ec2d21ca5a17aa865f8e311954b3addd9f10446 (patch)
tree3186398c69aee87abafe70e9f31ed49e1cbc957f /bench
parentb4c974d0597546e255edb3758a0bc58515674692 (diff)
Fixed a couple of issues introduced in previous commits.
Added a test for Triangular.
Diffstat (limited to 'bench')
-rw-r--r--bench/benchmark.cpp11
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++)