mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
fix singed integer overflow UB in integer_types and other trivial compiler warnings
libeigen/eigen!2380
This commit is contained in:
@@ -70,17 +70,6 @@ struct adjoint_specific<false> {
|
||||
}
|
||||
};
|
||||
|
||||
template <typename MatrixType, typename Scalar = typename MatrixType::Scalar>
|
||||
MatrixType RandomMatrix(Index rows, Index cols, Scalar min, Scalar max) {
|
||||
MatrixType M = MatrixType(rows, cols);
|
||||
for (Index i = 0; i < rows; ++i) {
|
||||
for (Index j = 0; j < cols; ++j) {
|
||||
M(i, j) = Eigen::internal::random<Scalar>(min, max);
|
||||
}
|
||||
}
|
||||
return M;
|
||||
}
|
||||
|
||||
template <typename MatrixType>
|
||||
void adjoint(const MatrixType& m) {
|
||||
/* this test covers the following files:
|
||||
|
||||
Reference in New Issue
Block a user