def test_hfftn(self): x = random((30, 20, 10)) assert_array_almost_equal(x, fft.hfftn(fft.ihfftn(x))) assert_array_almost_equal( x, fft.hfftn(fft.ihfftn(x, norm="ortho"), norm="ortho"))
def test_hfftn(self): x = random((30, 20, 10)) assert_array_almost_equal(x, fft.hfftn(fft.ihfftn(x))) for norm in ["backward", "ortho", "forward"]: assert_array_almost_equal( x, fft.hfftn(fft.ihfftn(x, norm=norm), norm=norm))