aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_mmtr.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-06-13 22:19:40 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-06-13 22:19:40 +0200
commit2f2a441a4d37963ecf8934176d16aaa008ccd96c (patch)
treed061d82bec20fa48716e82f642903c3d7ab66414 /test/product_mmtr.cpp
parent91b64a9c65cac7d967c9be8f8cade068ed421877 (diff)
Fix use of unitialized buffers.
Diffstat (limited to 'test/product_mmtr.cpp')
-rw-r--r--test/product_mmtr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/product_mmtr.cpp b/test/product_mmtr.cpp
index 92e6b668f..ecb5c36a3 100644
--- a/test/product_mmtr.cpp
+++ b/test/product_mmtr.cpp
@@ -25,8 +25,8 @@ template<typename Scalar> void mmtr(int size)
DenseIndex othersize = internal::random<DenseIndex>(1,200);
- MatrixColMaj matc(size, size);
- MatrixRowMaj matr(size, size);
+ MatrixColMaj matc = MatrixColMaj::Zero(size, size);
+ MatrixRowMaj matr = MatrixRowMaj::Zero(size, size);
MatrixColMaj ref1(size, size), ref2(size, size);
MatrixColMaj soc(size,othersize); soc.setRandom();