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"))
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))