Esempio n. 1
0
 def test_irfft_2d_nfft(self):    # No additional coverage for this, keep?
     my_irfft = irfft(self.x_fft_2, nfft=16)
     assert_array_almost_equal(my_irfft(self.x_fft_2),
                               np.fft.irfft(self.x_fft_2, n=16))
Esempio n. 2
0
 def test_irfft_pair(self):
     my_irfft, my_rfft = irfft(self.x_fft, fft_pair=True)
     my_x = my_irfft(self.x_fft)
     assert_array_almost_equal(my_rfft(my_x), self.x_fft)
Esempio n. 3
0
 def test_irfft_2d_default(self):
     my_irfft = irfft(self.x_fft_2)
     assert_array_almost_equal(my_irfft(self.x_fft_2),
                               np.fft.irfft(self.x_fft_2))
Esempio n. 4
0
 def test_irfft_2d_axis(self):
     my_irfft = irfft(self.x_fft_2, axis=0)
     assert_array_almost_equal(my_irfft(self.x_fft_2),
                               np.fft.irfft(self.x_fft_2, axis=0))
Esempio n. 5
0
 def test_irfft_1d(self):
     my_irfft = irfft(self.x_fft)
     assert_array_almost_equal(my_irfft(self.x_fft),
                               np.fft.irfft(self.x_fft))
Esempio n. 6
0
 def test_irfft_1d_nfft(self):
     my_irfft = irfft(self.x_fft, nfft=16)
     assert_array_almost_equal(my_irfft(self.x_fft),
                               np.fft.irfft(self.x_fft, n=16))
Esempio n. 7
0
 def test_irfft_2d_nfft(self):  # No additional coverage for this, keep?
     my_irfft = irfft(self.x_fft_2, nfft=16)
     assert_array_almost_equal(my_irfft(self.x_fft_2),
                               np.fft.irfft(self.x_fft_2, n=16))
Esempio n. 8
0
 def test_irfft_2d_axis(self):
     my_irfft = irfft(self.x_fft_2, axis=0)
     assert_array_almost_equal(my_irfft(self.x_fft_2),
                               np.fft.irfft(self.x_fft_2, axis=0))
Esempio n. 9
0
 def test_irfft_2d_default(self):
     my_irfft = irfft(self.x_fft_2)
     assert_array_almost_equal(my_irfft(self.x_fft_2),
                               np.fft.irfft(self.x_fft_2))
Esempio n. 10
0
 def test_irfft_1d_nfft(self):
     my_irfft = irfft(self.x_fft, nfft=16)
     assert_array_almost_equal(my_irfft(self.x_fft),
                               np.fft.irfft(self.x_fft, n=16))
Esempio n. 11
0
 def test_irfft_1d(self):
     my_irfft = irfft(self.x_fft)
     assert_array_almost_equal(my_irfft(self.x_fft),
                               np.fft.irfft(self.x_fft))