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