In Eigen library, I know that there are visitors and reductions for dense Eigen::Matrix
class which I can use efficiently to compute their 1-norm, inf-norm, etc. someway like this:
Eigen::MatrixXd A;
...
A.colwise().lpNorm<1>().maxCoeff();
A.rowwise().lpNorm<1>().maxCoeff();
// etc.
Now I have sparse Eigen::SparseMatrix
class. How can I efficiently compute these norms in this case?