There is an incorrect pointer type in Map<SparseMatrix>.coeffRef(). It will not compile: Map<SparseMatrix<type>> mat(m,n); mat.coeffRef(i,j) = y; The line in SparseMapBase::coeffRef(Index row, Index col): Index* r = std::lower_bound(&Base::m_innerIndices[start],&Base::m_innerIndices[end],inner); should be StorageIndex* r = std::lower_bound(&Base::m_innerIndices[start],&Base::m_innerIndices[end],inner);
Thanks for the report. Fixed: https://bitbucket.org/eigen/eigen/commits/2a78248cf879/ Summary: Bug 1258: fix compilation of Map<SparseMatrix>::coeffRef
-- 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/1258.