def triu(A, k=0, format=None):

    # convert to COOrdinate format where things are easy
    A = coo_matrix(A, copy=False)
    mask = A.row + k <= A.col
    return _masked_coo(A, mask).asformat(format)
Returns a path to the specified file name, of the specified type,
dataset/ETHPy150Open scipy/scipy/scipy/sparse/extract.py/triu--crossover with--dataset/ETHPy150Open adblockplus/gyp/test/lib/TestGyp.py/TestGypXcode.built_file_path