def forrt(X, m=None):
 if (m is None):
  m = len(X)
 y = (np.fft.rfft(X, m) / m)
 return np.r_[(y.real, y[1:(-1)].imag)]

def forrt ( X , m = None ) : if ( m is None ) : m = len ( X ) y = ( np . fft . rfft ( X , m ) / m ) return np . r_ [ ( y . real , y [ 1 : ( - 1 ) ] . imag ) ]
rfft with order like munro fortt routine .