Fast Fourier transform.
Computes the 1-dimensional discrete Fourier transform over the inner-most dimension of input.
const real = tf.tensor1d([1, 2, 3]);const imag = tf.tensor1d([1, 2, 3]);const x = tf.complex(real, imag);x.fft().print(); // tf.spectral.fft(x).print(); Copy
const real = tf.tensor1d([1, 2, 3]);const imag = tf.tensor1d([1, 2, 3]);const x = tf.complex(real, imag);x.fft().print(); // tf.spectral.fft(x).print();
The complex input to compute an fft over.
Generated using TypeDoc
Fast Fourier transform.
Computes the 1-dimensional discrete Fourier transform over the inner-most dimension of input.