#NEWLINE# def direct_dftn( x ) : #NEWLINE# #INDENT# x = asarray ( x ) #NEWLINE# for axis in range ( len ( x . shape ) ) : #NEWLINE# #INDENT# x = fft ( x , axis = axis ) #NEWLINE# #UNINDENT# return axis