I'm new to working with Eigen/Sparse. I'm trying to initialize a Eigen Sparse matrix with a (values, innerIndices, outerStarts) triplet. I see that there is an option to do this through a COO style triplet but not the one I mentioned.
I'm thinking of something like
Eigen::SparseMatrix<double> A(nrow,ncol);
A.valuePtr() = &values
A.innerIndexPtr() = &innerIndices
A.outerIndexPtr() = &outerStarts
I've tried
Eigen::SparseMatrix<double> A(nrow,ncol);
A.valuePtr() = &values
A.innerIndexPtr() = &innerIndices
A.outerIndexPtr() = &outerStarts
But it crashes with a segfault.