In VisualStudio 10 compiler I got: 'Eigen::internal::sparse_diagonal_product_inner_iterator_selector<Lhs,Rhs,SparseDiagonalProductType?,RhsMode?,LhsMode?>::Index' : cannot access private typedef declared in class 'Eigen::internal::sparse_diagonal_product_inner_iterator_selector<Lhs,Rhs,SparseDiagonalProductType?,RhsMode?,LhsMode?>' When trying the product of a diagonal matrix and a sparse matrix: Eigen::Vector<double> v(10); Eigen::SparseMatrix<double> M(10,10); v.cwiseInverse().asDiagonal() * M ; I was able to get around this by declaring typedef typename Lhs::Index Index; as public in Eigen/src/SparseCore/SparseDiagonalProduct.h:107 Not sure if it's really a bug, or there is a reason for this Index to be private.
-- 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/575.