Signed / unsigned comparison warning for triplet initialisation
Submitted by Philippe Marti
Assigned to Nobody
Link to original bugzilla bug (#665)
Version: 3.2
Description
Hi,
The following code generates warnings about signed/unsigned comparisons:
typedef Eigen::Triplet<double> T;
std::vector<T> tripletList;
tripletList.reserve(2);
tripletList.push_back(T(0,0,7.0));
tripletList.push_back(T(0,2,1.0));
Eigen::SparseMatrix<double> matA(8,8);
matA.setFromTriplets(tripletList.begin(), tripletList.end());
Warnings are at Eigen/src/SparseCore/SparseMatrix.h:951:7:
Regards,
Philippe
Edited by Eigen Bugzilla