summaryrefslogtreecommitdiff
path: root/numpy/fft
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Merge pull request #10775 from mdboom/return-errors-from-initEric Wieser2018-04-191-3/+6
|\ | | | | BUG: Return NULL from PyInit_* when exception is raised
| * Return NULL from PyInit_* when exception is raisedMichael Droettboom2018-03-301-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I don't think this is documented anywhere, but I'm pretty sure module init functions should return NULL in order to communicate that an exception occurred during initialization (as is the standard Python/C API convention). It's clear from the CPython code [here](https://github.com/python/cpython/blob/master/Python/importdl.c#L162) that if you don't return NULL, the exception is swallowed and replaced with the message "initialization of %s raised unreported exception". Admittedly, this is only useful for people porting Numpy to new platforms where it is helpful to know where module initialization is failing, but it can't hurt.
* | MAINT: Remove all uses of run_module_suite.Charles Harris2018-04-062-11/+2
| | | | | | | | | | That function is nose specific and has not worked since `__init__` files were added to the tests directories.
* | TST: Update modules `test` to PytestTester.Charles Harris2018-04-041-2/+3
| | | | | | | | | | | | | | | | Numpy can now be tested using the standard `python -c"import numpy; numpy.test()"` construct.
* | MAINT: Remove "bench" from testing modules `__init__`s.Charles Harris2018-03-311-1/+0
| | | | | | | | | | The "bench" testing with the old bench files is no longer supported. These days we use `runtests.py` and `asv`.
* | Use dummy_threading on platforms that don't support threading (#10773)Michael Droettboom2018-03-201-1/+4
|/
* Merge pull request #10618 from eric-wieser/avoid-nontuple-indicesMarten van Kerkwijk2018-03-151-2/+2
|\ | | | | MAINT: Stop using non-tuple indices internally
| * MAINT: Stop using non-tuple indices internallyEric Wieser2018-02-161-2/+2
| | | | | | | | | | | | By not using this type of indexing, it becomes easier for subclasses to override indexing in a way that works correctly with numpy functions. These locations were found by deprecating the behavior in question, which is deliberately not part of this commit
* | BUG: Improving the accuracy of the FFT implementationNils Becker2018-02-201-46/+81
|/ | | | | | Previously, the numerical constants in the FFT code were not provided at full double precision which led to a loss of accuracy in the FFT operation. Additionally this commit improves the accuracy of the twiddle factor calculation by reducing the argument of exp(2j*pi*m/n) to the first octant before calling the library function. On average the commit lowers the remaining numerical error in the FFT by a factor of ten.
* ENH: Implement fft.fftshift/ifftshift with np.roll for improved performance ↵Gaspar Karm2018-01-162-34/+119
| | | | | | (#10073) See the PR for benchmarking information
* TST, MAINT: Add `__init__.py` files to tests directories.Charles Harris2017-08-061-0/+0
| | | | | | | | This allows pytest to run with duplicate test file names. Note that `python <path-to-test-file>` no longer works with this change, nor will a simple `pytest numpy`, because numpy is imported from the numpy repository. However, `python runtests.py` and `>>> numpy.test()` are still available.
* TST: Remove unittest dependencies in numpy/fft/tests.Charles Harris2017-07-242-22/+26
|
* MAINT: Rearrange files in numpy/testing module.Charles Harris2017-07-041-1/+1
| | | | | | | | | | | | | | | | | The aim here is to separate out the nose dependent files prior to adding pytest support. This could be done by adding new files to the general numpy/testing directory, but I felt that it was to have the relevant files separated out as it makes it easier to completely remove nose dependencies when needed. Many places were accessing submodules in numpy/testing directly, and in some cases incorrectly. That presented a backwards compatibility problem. The solution adapted here is to have "dummy" files whose contents will depend on whether of not pytest is active. That way the module looks the same as before from the outside. In the case of numpy itself, direct accesses have been fixed. Having proper `__all__` lists in the submodules helped in that.
* MAINT: Include the function name in all argument error messagesEric Wieser2017-03-281-6/+6
| | | | | | | Performed using the following regex, replacing with $0:$1. Some manual cleanup was then required. ^[a-z]+_(\w+)(?:(?!\}).*\n)+.*PyArg_ParseTuple(AndKeywords)?\(args[^"]+"[^:"]+(?=")
* MAINT: replace len(x.shape) with x.ndimEric Wieser2017-02-241-2/+2
|
* MAINT: Remove shebang from test modulesSami Salonen2017-01-151-1/+0
|
* BUG: correct norm='ortho' scaling for rfft when n != NoneGregory R. Lee2017-01-042-4/+28
| | | | closes #8444