fix unit tests for integer types in preparation for next changeset making random<int> span over a much bigger range

This commit is contained in:
Benoit Jacob
2011-02-07 10:54:50 -05:00
parent 68a2e04a96
commit 3386a946f8
2 changed files with 3 additions and 2 deletions

View File

@@ -50,7 +50,8 @@ template<typename MatrixType> void basicStuff(const MatrixType& m)
vzero = VectorType::Zero(rows);
SquareMatrixType sm1 = SquareMatrixType::Random(rows,rows), sm2(rows,rows);
Scalar x = internal::random<Scalar>();
Scalar x = 0;
while(x == Scalar(0)) x = internal::random<Scalar>();
Index r = internal::random<Index>(0, rows-1),
c = internal::random<Index>(0, cols-1);