{ } Raw JSON

bundles / scipy 1.17.1 / scipy / fftpack / _basic / ifftn

function

scipy.fftpack._basic:ifftn

source: /scipy/fftpack/_basic.py :340

Signature

def   ifftn ( x shape = None axes = None overwrite_x = False )

Summary

Return inverse multidimensional discrete Fourier transform.

Extended Summary

The sequence can be of an arbitrary type.

The returned array contains

y[j_1,..,j_d] = 1/p * sum[k_1=0..n_1-1, ..., k_d=0..n_d-1]
   x[k_1,..,k_d] * prod[i=1..d] exp(sqrt(-1)*2*pi/n_i * j_i * k_i)

where d = len(x.shape), n = x.shape, and p = prod[i=1..d] n_i.

For description of parameters see fftn.

Examples

from scipy.fftpack import fftn, ifftn
import numpy as np
y = (-np.arange(16), 8 - np.arange(16), np.arange(16))
np.allclose(y, ifftn(fftn(y)))

See also

fftn

for detailed information.

Aliases

  • scipy.fftpack.ifftn