mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix a bunch of annoying compiler warnings in tests
This commit is contained in:
committed by
Antonio Sánchez
parent
e7b1ad0315
commit
b7551bff92
@@ -63,10 +63,10 @@ template<> struct adjoint_specific<false> {
|
||||
};
|
||||
|
||||
template<typename MatrixType, typename Scalar = typename MatrixType::Scalar>
|
||||
MatrixType RandomMatrix(int rows, int cols, Scalar min, Scalar max) {
|
||||
MatrixType RandomMatrix(Index rows, Index cols, Scalar min, Scalar max) {
|
||||
MatrixType M = MatrixType(rows, cols);
|
||||
for (int i=0; i<rows; ++i) {
|
||||
for (int j=0; j<cols; ++j) {
|
||||
for (Index i=0; i<rows; ++i) {
|
||||
for (Index j=0; j<cols; ++j) {
|
||||
M(i, j) = Eigen::internal::random<Scalar>(min, max);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user