[BUG]: Eigen::SparseMatrix -> unexpected overload-resolution / template-instantiation #5283
Open
2 of 3 tasks
Labels
triage
New bug, unverified
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
7233072
Problem description
I'm trying to wrap dense as well as sparse-matrices (py -> c++): specifically
Eigen::Array<T, Eigen::Dynamic, Eigen::Dynamic>
Eigen::SparseMatrix<T, Eigen::RowMajor>
Eigen::SparseMatrix<T, Eigen::ColMajor>
Having tried two approaches, one being based on
EigenBase<Derived>
, the other being based on splitting the target functions into a dense and a sparse variant (as shown in example).In both cases, something unexpected is happening to the type in the sparse-case while the dense case works as expected.
Reproducible example: https://github.com/sschnug/cmake_example/tree/eigen_sparse_matrix_overload_issue_example
Reproducible example code
Is this a regression? Put the last known working version here if it is.
Not a regression
The text was updated successfully, but these errors were encountered: