Created attachment 845 [details] result of compilation The following does not compile ```c++ #include <iostream> #include <fstream> #include <Eigen/Sparse> using namespace std; using namespace Eigen; int main(int argc, char **args) { SparseMatrix<double> A; SparseMatrix<double> B = 1.*A; SparseMatrix<double> C = A.selfadjointView<Upper>(); SparseMatrix<double> D = 1.*A.selfadjointView<Upper>(); return 0; } ```
Workaround: (1.*A).selfadjointView<Upper>();
This expression compiles, but the assignment does not.
The (massively ugly) workaround I've found is to put the double into a SparseMatrix that have only one coefficient.
(In reply to Vincent Huber from comment #3) > The (massively ugly) workaround I've found is to put the double into a > SparseMatrix that have only one coefficient. I mean the identity times the coef
-- 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/1536.