Skip to content

fixed issue 18 #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2018
Merged

fixed issue 18 #19

merged 1 commit into from
Jul 31, 2018

Conversation

oleksandr-pavlyk
Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Jul 31, 2018

Fixes #18.

Using vanilla numpy:

In [1]: import numpy as np
   ...: x = np.zeros([2, 3])
   ...: y = np.fft.fftpack.rfftn(x, axes=[1], norm='ortho')
   ...:
   ...:

In [2]: import mkl_fft, mkl_fft._numpy_fft

In [3]: y2 = mkl_fft._numpy_fft.rfftn(x, axes=[1], norm='ortho')

In [4]: np.allclose(y, y2)
Out[4]: True

In [5]: import numpy as np
   ...: x = np.ones([2, 3])
   ...: y = np.fft.fftpack.rfftn(x, axes=[1], norm='ortho')
   ...:
   ...:

In [6]: y2 = mkl_fft._numpy_fft.rfftn(x, axes=[1], norm='ortho')

In [7]: np.allclose(y, y2)
Out[7]: True

@oleksandr-pavlyk oleksandr-pavlyk merged commit fc91277 into master Jul 31, 2018
@oleksandr-pavlyk oleksandr-pavlyk deleted the issue-18 branch July 31, 2018 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when rfftn is called with axes and norm='ortho'
1 participant