mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user