Fix use of unitialized buffers.

(grafted from 2f2a441a4d37963ecf8934176d16aaa008ccd96c
)
This commit is contained in:
Gael Guennebaud 2015-06-13 22:19:40 +02:00
parent 37ed0d991a
commit fcd213a297

View File

@ -24,8 +24,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();