コード例 #1
0
 def test_hfft2(self):
     x = random((30, 20))
     assert_array_almost_equal(x, fft.hfft2(fft.ihfft2(x)))
     assert_array_almost_equal(
         x, fft.hfft2(fft.ihfft2(x, norm="ortho"), norm="ortho"))
コード例 #2
0
ファイル: test_numpy.py プロジェクト: Asgardian8740/Django
 def test_hfft2(self):
     x = random((30, 20))
     assert_array_almost_equal(x, fft.hfft2(fft.ihfft2(x)))
     for norm in ["backward", "ortho", "forward"]:
         assert_array_almost_equal(
             x, fft.hfft2(fft.ihfft2(x, norm=norm), norm=norm))