def permutate(x, indices, axis=0, inv=False):
 return Permutate(axis=axis, inv=inv)(x, indices)

def permutate ( x , indices , axis = 0 , inv = False ) : return Permutate ( axis = axis , inv = inv ) ( x , indices )
permutates a given variable along an axis .