# Spectral Functions

[TOC]

## Fourier Transform Functions

TensorFlow provides several operations that you can use to add discrete
Fourier transform functions to your graph.

*   @{tf.spectral.fft}
*   @{tf.spectral.ifft}
*   @{tf.spectral.fft2d}
*   @{tf.spectral.ifft2d}
*   @{tf.spectral.fft3d}
*   @{tf.spectral.ifft3d}
*   @{tf.spectral.rfft}
*   @{tf.spectral.irfft}
*   @{tf.spectral.rfft2d}
*   @{tf.spectral.irfft2d}
*   @{tf.spectral.rfft3d}
*   @{tf.spectral.irfft3d}

# Spectral Functions

[TOC]

The @{tf.spectral} module supports several spectral decomposition operations
that you can use to transform Tensors of real and complex signals.

## Discrete Fourier Transforms

*   @{tf.spectral.fft}
*   @{tf.spectral.ifft}
*   @{tf.spectral.fft2d}
*   @{tf.spectral.ifft2d}
*   @{tf.spectral.fft3d}
*   @{tf.spectral.ifft3d}
*   @{tf.spectral.rfft}
*   @{tf.spectral.irfft}
*   @{tf.spectral.rfft2d}
*   @{tf.spectral.irfft2d}
*   @{tf.spectral.rfft3d}
*   @{tf.spectral.irfft3d}

## Discrete Cosine Transforms

*   @{tf.spectral.dct}

Add tf.spectral.dct, based on scipy.fftpack.dct.
Add tf.spectral.dct, based on scipy.fftpack.dct.

Only supports the type II DCT for the moment, but implements SciPy's API to fully match it once type I and III are implemented.

Implemented using a length 2N RFFT, as described here:
https://dsp.stackexchange.com/a/10606

PiperOrigin-RevId: 170808354
