def _reverse_and_conj(x):
 reverse = ([slice(None, None, (-1))] * x.ndim)
 return x[reverse].conj()

def _reverse_and_conj ( x ) : reverse = ( [ slice ( None , None , ( - 1 ) ) ] * x . ndim ) return x [ reverse ] . conj ( )
reverse array x in all dimensions and perform the complex conjugate .