num::opnorm1¶
Defined in header <linear/condition.hpp>
template <std::floating_point T>
T opnorm1(const mat<T> &A); // (1)
real opnorm1(const spmat &A); // (2)
(1) Compute the 1-norm of a matrix: \(\|A\|_1 = \max_j \sum_i |a_{ij}|\).
(2) Compute the 1-norm of a sparse matrix: \(\|A\|_1\).