#NEWLINE# def _get_output_fourier_complex( output , input ) : #NEWLINE# #INDENT# if ( output is None ) : #NEWLINE# #INDENT# if ( input . dtype . type in [ numpy . complex64 , numpy . complex128 ] ) : #NEWLINE# #INDENT# output = numpy . zeros ( input . shape , dtype = input . dtype ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# output = numpy . zeros ( input . shape , dtype = numpy . complex128 ) #NEWLINE# #UNINDENT# return_value = output #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( type ( output ) is type ) : #NEWLINE# #INDENT# if ( output not in [ numpy . complex64 , numpy . complex128 ] ) : #NEWLINE# #INDENT# raise RuntimeError ( 'output type not supported' ) #NEWLINE# #UNINDENT# output = numpy . zeros ( input . shape , dtype = output ) #NEWLINE# return_value = output #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( output . shape != input . shape ) : #NEWLINE# #INDENT# raise RuntimeError ( 'output shape not correct' ) #NEWLINE# #UNINDENT# return_value = None #NEWLINE# #UNINDENT# #UNINDENT# return ( return_value , return_value )