Ejemplo n.º 1
0
 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"))
Ejemplo n.º 2
0
 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))