The following code generates warnings about signed/unsigned comparisons:
typedef Eigen::Triplet<double> T;
Warnings are at Eigen/src/SparseCore/SparseMatrix.h:951:7:
this is because Triplet by default uses unsigned int as index type.
Is this on purpose? I would propose to set the default index type to int
or SparseMatrix<>::index_type instead.
Until that is done you can set the index type using the second template parameter, i.e. in the above test code use
typedef Eigen::Triplet<double,int> T;
Fixed and back-ported to 3.2 here:
-- GitLab Migration Automatic Message --
This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/665.