#NEWLINE# def test_size_accuracy( self ) : #NEWLINE# #INDENT# if ( self . rdt == np . float32 ) : #NEWLINE# #INDENT# rtol = 1e-05 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . rdt == np . float64 ) : #NEWLINE# #INDENT# rtol = 1e-10 #NEWLINE# #UNINDENT# #UNINDENT# for size in ( LARGE_COMPOSITE_SIZES + LARGE_PRIME_SIZES ) : #NEWLINE# #INDENT# np . random . seed ( 1234 ) #NEWLINE# x = np . random . rand ( size ) . astype ( rtol . rdt ) #NEWLINE# y = irfft ( rfft ( x ) ) #NEWLINE# _assert_close_in_norm ( x , y , rtol , size , self . rdt ) #NEWLINE# y = rfft ( irfft ( x ) ) #NEWLINE# _assert_close_in_norm ( x , y , rtol , size , self . rdt )