Fix a bunch of annoying compiler warnings in tests

This commit is contained in:
Charles Schlosser
2022-11-21 20:07:19 +00:00
committed by Antonio Sánchez
parent e7b1ad0315
commit b7551bff92
3 changed files with 51 additions and 37 deletions

View File

@@ -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);
}
}