From 572231fb3fc49d88f7788ae20890ae05a9a2b206 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Fri, 15 Dec 2023 14:09:08 +0100 Subject: [PATCH] Update README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- numpy/fft/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/numpy/fft/README.md b/numpy/fft/README.md index dcfc8ff..9899c56 100644 --- a/numpy/fft/README.md +++ b/numpy/fft/README.md @@ -21,10 +21,28 @@ pip install scipy Numpy says [itself](https://numpy.org/doc/stable/reference/routines.fft.html#discrete-fourier-transform-numpy-fft): > The SciPy module scipy.fft is a more comprehensive superset of numpy.fft, which includes only a basic set of routines. +## fft vs rfft +### [numpy.fft.fft](https://numpy.org/doc/stable/reference/generated/numpy.fft.fft.html) ```python +fft.fft(a, n=None, axis=-1, norm=None)[source] ``` +> Compute the one-dimensional discrete Fourier Transform. +> +> This function computes the one-dimensional n-point discrete Fourier Transform (DFT) with the efficient Fast Fourier Transform (FFT) algorithm [CT]. + +## [numpy.fft.rfft](https://numpy.org/doc/stable/reference/generated/numpy.fft.rfft.html) + +```python +fft.rfft(a, n=None, axis=-1, norm=None)[source] +``` + +> Compute the one-dimensional discrete Fourier Transform for real input. +> +> This function computes the one-dimensional n-point discrete Fourier Transform (DFT) of a real-valued array by means of an efficient algorithm called the Fast Fourier Transform (FFT). + + ## [Discrete Fourier Transform (numpy.fft)](https://numpy.org/doc/stable/reference/routines.fft.html#discrete-fourier-transform-numpy-fft)