def sp_one_norm(A): """ One norm for sparse matrix """ return zcsr_one_norm(A.data, A.indices, A.indptr, A.shape[0], A.shape[1])