-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace usage of deprecated Eigen class MappedSparseMatrix. #3499
Conversation
Eigen::MappedSparseMatrix has been deprecated since Eigen 3.3 from 2016. Use the equivalent modern syntax Eigen::Map<Eigen::SparseMatrix<...>>.
Replace usage of deprecated Eigen class
Currently, the minimum supported Eigen version in PyBind11 is 3.2.7. Did this API exist in 3.2? Otherwise, we need to either raise the minimum Eigen version or add an ifdef backport. |
@Skylion007 I don't think this existed in Eigen 3.2. What would you prefer, raising the minimum version or an ifdef? Eigen 3.2 is pretty ancient. |
@Skylion007 what do you prefer? |
If it's not too much trouble to enable a backport with a "using"/typedef, it would be nice to keep support for Eigen 3.2. |
@Skylion007 PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks all!
I'll go ahead merge this now.
@rmlarsen I'll import this into the Google env asap.
@rwgk Thanks! |
Replace usage of deprecated Eigen class MappedSparseMatrix.
Description
Eigen::MappedSparseMatrix
has been deprecated since Eigen 3.3 from 2016. Use the equivalent modern syntaxEigen::Map<Eigen::SparseMatrix<...>>
.The deprecated class was removed on the Eigen master branch in:
https://gitlab.com/libeigen/eigen/-/commit/7e586635ba85ba926ba3148f8d14beca3535f970
Suggested changelog entry: