Skip to content

Commit b2b45fe

Browse files
carterboxmattip
authored andcommitted
DOC: Note FFT type promotion (numpy#14912)
* 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 numpy#14892
1 parent e61f5b0 commit b2b45fe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

numpy/fft/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,16 @@
118118
It differs from the forward transform by the sign of the exponential
119119
argument and the default normalization by :math:`1/n`.
120120
121+
Type Promotion
122+
--------------
123+
124+
`numpy.fft` promotes ``float32`` and ``complex64`` arrays to ``float64`` and
125+
``complex128`` arrays respectively. For an FFT implementation that does not
126+
promote input arrays, see `scipy.fftpack`.
127+
121128
Normalization
122129
-------------
130+
123131
The default normalization has the direct transforms unscaled and the inverse
124132
transforms are scaled by :math:`1/n`. It is possible to obtain unitary
125133
transforms by setting the keyword argument ``norm`` to ``"ortho"`` (default is

0 commit comments

Comments
 (0)