How to extract a block from a Eigen::SparseMatrix<double>. It seems there aren’t the methods I used for the dense ones.
‘class Eigen::SparseMatrix<double>’ has no member named ‘topLeftCorner’
‘class Eigen::SparseMatrix<double>’ has no member named ‘block’
There is a way to extract a block as a Eigen::SparseMatrix<double> ?
I made this function to extract blocks from a
Eigen::SparseMatrix<double,ColMaior>And these if the sub-matrix is in one of the four corners: