least-squares-cpp icon indicating copy to clipboard operation
least-squares-cpp copied to clipboard

Sparse matrix support

Open zopieux opened this issue 3 years ago • 0 comments

Hi,

Thanks for publishing this library! I gave it a try in a project of mine, and while it works great, I was wondering if it would make sense to expose the Eigen Matrix type to callers, ie. make it a template typename.

I'm using least squares to solve an objective in which the Jacobian is sparse (mostly zeros), and Eigen has SparseMatrix implementations for decompositions and solvers (see eg. SparseQR), which might be more efficient/fast than the default dense matrix ones. I must admit I haven't benchmarked performance, but figured you should be aware.

Thanks.

zopieux avatar Aug 21 '22 02:08 zopieux