summaryrefslogtreecommitdiff
path: root/numpy/fft
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Parameter name typo axes -> axis in numpy.fft._pocketfft.Matthias Bussonnier2020-12-181-5/+5
| | | | | | | | | | The parameter name seem to have a typo in both those case and reference axis (and not axes), this is likely due to copy-past as some other functions in this modules use axes (when several indices are required), but other also use `axis` and have the correct spelling. From review it also seem like previous phrasing is unclear so update all similar entries to reflect the new phrasing.
* Merge pull request #16818 from rohitsanj/examples-rfft2-irfft2Charles Harris2020-12-151-0/+19
|\ | | | | DOC: added examples section for rfft2 and irfft2 docstring
| * DOC: update rfft2/irfft2 examples.Ross Barnowski2020-08-171-12/+14
| | | | | | | | | | Update rfft2 example to conform to fft2 example and switch the irfft2 example to illustrate round-tripping.
| * DOC: added examples for rfft2 and irfft2 docstringRohit Sanjay2020-08-171-0/+17
| |
* | BUG: Fixed an issue where `.pyi` weren't picked up by numpy sub-packagesBas van Beek2020-11-031-0/+1
| |
* | Merge pull request #17104 from BvB93/sub-modulesCharles Harris2020-09-071-0/+20
|\ \ | | | | | | ENH: Add placeholder stubs for all sub-modules
| * | ENH: Replace module-level `__getattr__` with explicitly defined objectsBas van Beek2020-08-201-2/+18
| | |
| * | ENH: Add placeholder stubs for all sub-modulesBas van Beek2020-08-191-0/+4
| |/
* | MAINT: Remove users of `numpy.compat.integer_types`Eric Wieser2020-08-312-5/+3
|/ | | | Some more Python 2 cleanup
* DOC: Disclaimer for FFT libraryBen Nathanson2020-08-091-0/+3
| | | | | | Adds sentence to the top of routines.fft.html explaining that scipy.fft is a more comprehensive collection, per mailing list discussion (http://numpy-discussion.10968.n7.nabble.com/Add-Chebyshev-cosine-transforms-implemented-via-FFTs-td48373.html#a48382)
* DOC: Clarify input to irfft/irfft2/irfftn (#16950)Bharat Raghunathan2020-07-291-3/+7
| | | | * DOC: Clarify input to irfft/irfft2/irfftn * DOC: Update see also link with rfft
* Merge pull request #16532 from seberg/delete-sigint-handlingMatti Picus2020-07-171-6/+0
|\ | | | | BUG: Remove non-threadsafe sigint handling from fft calculation
| * BUG: Remove non-threadsafe sigint handling from fft calculationSebastian Berg2020-06-251-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fft calculation is the only point in our code where this function is used. Allowing Ctrl+C, in FFT specifically used have more reasons, since before pocketfft, some array-sizes could lead to very large run-times. Pocketfft fixed that issue, and now FFT is not really any slower, faster, or memory hungry than any other NumPy operation so it feels it does not need this handling. Rather, if we can find a better solution, it should also be added to more functions. The reason for removal is that it is not only unsafe while the FFT is running (in theory). Multiple, threaded FFT run can easily leave the signal handler in a bad state, causing crashes if Ctrl+C (sigint) is given at any point after the call. It would be possible to patch that over, by only resetting the signal handler if we actually changed it (or even more complex tricks), or possibly only using this technique when on the main thread. But, all of these solutions seem to complicate things, when the main reason for why allowing sigint seems useful is gone with pocketfft.
* | ENH: add `norm=forward,backward` to numpy.fft functions (#16476)Chris Vavaliaris2020-07-123-106/+259
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Mark tests as a subpackage rather than data.Hameer Abbasi2020-05-061-1/+1
|
* DOC: Add missing bracket (gh-16051)Chunlin2020-04-251-4/+4
| | | Add missing closing brackets, script to generate the list in the PR gh-16051.
* BUG: Add _LARGE_FILES to def_macros[] when platform is AIX (gh-15938)Michael Felt2020-04-221-1/+5
| | | AIX needs to be told to use large file support at all times. Fixes parts of gh-15801.
* MAINT: Pull identical line out of conditional.Ross Barnowski2020-02-221-2/+1
| | | | | | | | There was an identical statement in both possible branches of a conditional. Moved statement out of conditional to eliminate one repititious LOC
* MAINT: cleanup unused imports; avoid redefinition of importsMike Taves2020-02-062-2/+1
| | | | | | | * 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)
* BLD: use 0.3.7 release version, add dependency on libgfortran5mattip2020-01-171-5/+5
|
* MAINT: Remove sys.version checks in testsSeth Troisi2020-01-151-4/+1
|
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-052-7/+7
| | | | | | | 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.
* Merge pull request #14376 from jdufresne/futureSebastian Berg2020-01-036-11/+0
|\ | | | | MAINT: Remove unnecessary 'from __future__ import ...' statements
| * MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-036-11/+0
| | | | | | | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* | MAINT: Remove Python2 specific C module setup (gh-15231)Seth Troisi2020-01-031-19/+2
|/ | | | | Dropping the support for python 2, the difference in module setup do not have to be accounted for anymore. This removes the macros and ifdef's related to module setup code and python 2 support.
* DOC: Note FFT type promotion (#14912)Daniel Ching2019-11-151-0/+8
| | | | | | | * DOC: Note FFT type promotion The NumPy FFT implementation will promote `float32` types to `float64` types. This may not be desired for some applications, but the SciPy implementation supports more data types. Closes #14892
* DOC: remove note about Pocketfft license file (non-existing here).Ralf Gommers2019-09-201-5/+0
| | | | | | | | | Closes gh-14552 The Pocketfft author (mreineck) agreed on gh-14552 that Pocketfft can simply fall under the NumPy license, no separate license file needed. [ci skip]
* MAINT: clean up numpy/fft/info.pyRalf Gommers2019-09-072-190/+185
|
* MAINT: move pocketfft .py/.so to `_pocketfft`Ralf Gommers2019-09-074-8/+8
| | | | These aren't public, and should have been added with underscores.
* BUG: Fix ZeroDivisionError for zero length arrays in pocketfft. (#14279)mreineck2019-09-051-13/+19
| | | | | | | | * introduce inv_fct to avoid divisions by zero * add comment describing the purpose of inv_fct * inv_fct -> inv_norm
* BUG: Better err message for normEric Larson2019-08-082-5/+10
|
* 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.
* DOC: Add note to irfft-like functions about the default sizesPeter Bell2019-07-141-7/+35
|
* 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-082-5/+21
| | | | | | | | | | | | tweak and add test better fix fix cleanup, additional test fix test
* DOC, TST: clean up matplotlib importsTyler Reddy2019-01-021-2/+0
| | | | | | * as requested by review in gh-12634, the vast majority of docstring matplotlib imports can be simplified to a single line
* DOC, TST: remove agg setting from docsTyler Reddy2019-01-021-2/+0
| | | | | | | * there is no longer any usage of "agg" backend switching in our docstrings because this backend is already activated in the refguide_check machinery
* replace fftpack with pocketfftMartin Reinecke2018-12-2511-2179/+2504
|
* MAINT: address several reviewer commentsTyler Reddy2018-12-141-14/+14
|
* TST, DOC: enable refguide_checkTyler Reddy2018-12-142-62/+62
| | | | | | | | * ported the refguide_check module from SciPy for usage in NumPy docstring execution/ verification; added the refguide_check run to Azure Mac OS CI * adjusted NumPy docstrings such that refguide_check passes
* ENH: set correct __module__ for objects in numpy's public APIStephan Hoyer2018-11-131-2/+3
| | | | | | | | | | | | | Fixes GH-12271 Tests verify that everything in ``dir(numpy)`` either has ``__module__`` set to ``'numpy'``, or appears in an explicit whitelist of undocumented functions and exported bulitins. These should eventually be documented or removed. I also identified a handful of functions for which I had accidentally not setup dispatch for with ``__array_function__`` before, because they were listed under "ndarray methods" in ``_add_newdocs.py``. I guess that should be a lesson in trusting code comments :).
* MAINT: set preferred __module__ for numpy functionsStephan Hoyer2018-10-232-3/+9
|
* ENH: __array_function__ support for np.fft and np.linalg (#12117)Stephan Hoyer2018-10-122-0/+31
| | | | | | | | | | | | * ENH: __array_function__ support for np.fft and np.linalg xref GH12028 * CLN: remove unnecessary dispatcher functions from np.linalg * CLN: remove more unneeded dispatchers * CLN: remove repeated dispatchers from np.linalg
* MAINT: Normalize axes the normal way in fftpack.pyEric Wieser2018-09-231-2/+4
|
* MAINT: Move pytesttester outside of np.testing, to avoid creating ↵Eric Wieser2018-07-021-1/+1
| | | | | | | | unnecessary import dependencies pytesttester is used by every single subpackage, so making it depend on np.testing just creates cyclic dependencies that can lead to circular imports Relates to #11457