Skip to main content

fft

Overloads

NameDescription
fft(const ComplexMatrix input, const List<integer> axes) -> ComplexMatrixForward FFT
fft(const ComplexMatrix input, const List<integer> axes, real normalization) -> ComplexMatrixForward FFT with normalization
fft(const ComplexArray input, const List<integer> axes, real normalization) -> ComplexArrayForward FFT with normalization
fft(const ComplexArray input, const List<integer> axes) -> ComplexArrayForward FFT

fft(const ComplexMatrix input, const List<integer> axes) -> ComplexMatrix

Forward FFT

Performs forward complex-to-complex FFT with default normalization (1.0)

Parameters

  • input: Complex input matrix (Nx1 for 1D, NxM for 2D)
  • axes: Vector of axes to transform. For 1D (Nx1): use [0]. For 2D (NxM): use [0] for rows, [1] for columns, or [0,1] for full 2D FFT

Returns

Complex output matrix with same shape as input

fft(const ComplexMatrix input, const List<integer> axes, real normalization) -> ComplexMatrix

Forward FFT with normalization

Performs forward complex-to-complex FFT with custom normalization

Parameters

  • input: Complex input matrix (Nx1 for 1D, NxM for 2D)
  • axes: Vector of axes to transform. For 1D (Nx1): use [0]. For 2D (NxM): use [0] for rows, [1] for columns, or [0,1] for full 2D FFT
  • normalization: Normalization factor (default: 1.0 for no normalization, 1.0/N for normalized FFT)

Returns

Complex output matrix with same shape as input

fft(const ComplexArray input, const List<integer> axes, real normalization) -> ComplexArray

Forward FFT with normalization

Performs forward complex-to-complex FFT with custom normalization

Parameters

  • input: Complex input array (Nx1 for 1D, NxM for 2D)
  • axes: Vector of axes to transform. For 1D (Nx1): use [0]. For 2D (NxM): use [0] for rows, [1] for columns, or [0,1] for full 2D FFT
  • normalization: Normalization factor (default: 1.0 for no normalization, 1.0/N for normalized FFT)

Returns

Complex output array with same shape as input

fft(const ComplexArray input, const List<integer> axes) -> ComplexArray

Forward FFT

Performs forward complex-to-complex FFT with default normalization (1.0)

Parameters

  • input: Complex input array (Nx1 for 1D, NxM for 2D)
  • axes: Vector of axes to transform. For 1D (Nx1): use [0]. For 2D (NxM): use [0] for rows, [1] for columns, or [0,1] for full 2D FFT

Returns

Complex output array with same shape as input