summaryrefslogtreecommitdiff
path: root/numpy/fft/tests/test_pocketfft.py
Commit message (Collapse)AuthorAgeFilesLines
* TST: Skip tests that are not currently supported in wasmHood Chatham2022-11-111-1/+2
|
* index_tricks.py file not modifiedshubham119411402021-08-191-1/+1
|
* ENH: add `norm=forward,backward` to numpy.fft functions (#16476)Chris Vavaliaris2020-07-121-15/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The kwarg option norm=inverse leads to scaling of the transforms inverse (opposite) to that of the default option norm=None; i.e. the forward transform is normalized with 1/n whereas the backward one with 1. The fft routines and their tests have been modified to reflect the changes; all tests have been passed successfully. Closes #16126 * modified _unitary, fft & ifft and their tests; tests passed * modified rfft & irfft and their tests; tests passed * modified hfft & ihfft and all tests; all modifications are now done * correction in ihfft; all 79 fft tests passed successfully * undo unnecessary docstrings changes made in my previous commits * use norm=forward kwarg value name * Update numpy/fft/__init__.py Co-authored-by: Leo Fang <leofang@bnl.gov> * add code review suggestions Co-authored-by: Leo Fang <leofang@bnl.gov> * add default norm=None alias norm=backward * streamline private normalization functions * modify hermitian FFTs * add review suggestions Co-authored-by: Leo Fang <leofang@bnl.gov> * add review suggestions v2 (dict as module const) * make review suggestions v3 * Apply suggestions from code review Co-authored-by: Leo Fang <leofang@bnl.gov>
* MAINT: cleanup unused imports; avoid redefinition of importsMike Taves2020-02-061-1/+0
| | | | | | | * Cleanup unused imports (F401) of mostly standard Python modules, or some internal but unlikely referenced modules * Where internal imports are potentially used, mark with noqa * Avoid redefinition of imports (F811)
* MAINT: Remove sys.version checks in testsSeth Troisi2020-01-151-4/+1
|
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-051-3/+3
| | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* BUG: Better err message for normEric Larson2019-08-081-3/+7
|
* Incremented _tol my factor of 8.Oleksandr Pavlyk2019-08-011-1/+2
|
* Replaced np.sqrt(X.size) with np.sqrt(np.log2(X.size)) per PR reviewOleksandr Pavlyk2019-08-011-1/+1
|
* Replaced assert_array_almost_equal with assert_allcloseOleksandr Pavlyk2019-08-011-60/+63
| | | | | | | | | | Relaxed test_fft_with_order for float32. Infinity norm round-off error of FFT is shown in G.U. Ramos, "Roundoff Error Analyss of the Fast Fourier Transform," Mathematics of Computation, vol. 25, no. 116, Oct. 1971, p. 757 to be bounded by sqrt(N)*K*eps.
* TST: Added test_fftpocket.py::test_axesOleksandr Pavlyk2019-04-171-0/+10
| | | | | Test for ND transforms with axes for invariance of permutation of axes.
* SpellingRoman Yurchak2019-01-091-1/+1
|
* TST Check FFT for C/Fortran ordered and non contigous arraysRoman Yurchak2019-01-091-0/+38
|
* tweak testMartin Reinecke2019-01-081-5/+7
|
* fix #12663Martin Reinecke2019-01-081-0/+8
| | | | | | | | | | | | tweak and add test better fix fix cleanup, additional test fix test
* replace fftpack with pocketfftMartin Reinecke2018-12-251-0/+195