CNTK/GeneralizedHoughTransform/generalized_ht.py
def n_max(a, n):
    '''
    Return the N max elements and indices in a
    '''
    indices = a.ravel().argsort()[-n:]
    indices = (np.unravel_index(i, a.shape) for i in indices)
    return [(a[i], i) for i in indices]

    Return the N max elements and indices in a
    
Return the N max elements and indices in a
Return the N max elements and indices in a
def n_max(a, n):
    indices = a.ravel().argsort()[-n:]
    indices = (np.unravel_index(i, a.shape) for i in indices)
    return [(a[i], i) for i in indices]
def n_max ( a , n ) : indices = a . ravel ( ) . argsort ( ) [ - n : ] indices = ( np . unravel_index ( i , a . shape ) for i in indices ) return [ ( a [ i ] , i ) for i in indices ]
Return the N max elements and indices in a
Return the N max elements and indices in a
'''
    Return the N max elements and indices in a
    '''
a
n