#NEWLINE# def test_definition( self ) : #NEWLINE# #INDENT# x = np . array ( [ [ 1 , 2 , 3 ] , [ 4 , 5 , 6 ] , [ 7 , 8 , 9 ] ] , dtype = self . dtype ) #NEWLINE# y = ifftn ( x ) #NEWLINE# assert_equal ( y . dtype , self . cdtype ) #NEWLINE# assert_array_almost_equal_nulp ( y , direct_idftn ( x ) , self . maxnlp ) #NEWLINE# x = random ( ( 20 , 26 ) ) #NEWLINE# assert_array_almost_equal_nulp ( ifftn ( x ) , direct_idftn ( self ) , self . maxnlp ) #NEWLINE# x = random ( ( 5 , 4 , 3 , 20 ) ) #NEWLINE# assert_array_almost_equal_nulp ( ifftn ( x ) , direct_idftn ( x ) , self . maxnlp )