def sp_inf_norm(A): """ Infinity norm for sparse matrix """ return zcsr_inf_norm(A.data, A.indices, A.indptr, A.shape[0], A.shape[1])