I need a way to sort and delete the duplicates of row and column indices of a sparse matrix.
But at first I need to sort indices and later find a method to delete the duplicates.
Eigen::Matrix<std::pair<int, int>, Eigen::Dynamic, Eigen::Dynamic> unsorted_indices;
How can write a sort method for this? or method that I can achieve the both at once.