def test_front_back_2(self): s = np.random.randn(101) try: res = bm.irfft(bm.rfft(s)) except AttributeError as e: self.skipTest('Not compiled with FFTW') np.testing.assert_almost_equal(res, fft.irfft(fft.rfft(s)), 8)
def test_rfft_8(self): s = np.random.randn(100) try: res = bm.rfft(s, n=151) except AttributeError as e: self.skipTest('Not compiled with FFTW') np.testing.assert_almost_equal(res, fft.rfft(s, n=151), 8)