(a, n)
return argret[argret.size - n:]
Return n largest values' indexes of the given array a.

    Parameters
    ----------
    a: {list, np.ndarray}
        Data array.

    n: int
        The number of returned args.

    Returns
    -------
    nlargestarg: list
        The n largest args in array a.
Return n largest values' indexes of the given array a.
Return n largest values indexes of the given array a .
def nlargestarg(a, n):
    """Return n largest values' indexes of the given array a.

    Parameters
    ----------
    a: {list, np.ndarray}
        Data array.

    n: int
        The number of returned args.

    Returns
    -------
    nlargestarg: list
        The n largest args in array a.
    """
    assert (_is_arraylike(a))
    assert (n > 0)
    argret = np.argsort(a)
    # ascent
    return argret[argret.size - n:]
def nlargestarg ( a , n ) : assert ( _is_arraylike ( a ) ) assert ( n > 0 ) argret = np . argsort ( a ) # ascent return argret [ argret . size - n : ]