Пример #1
0
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])
Пример #2
0
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])