Skip to main content

Mojo function

irfft

irfft[input_type: DType, output_type: DType](input: TileTensor[input_type, input.LayoutType, input.origin, linear_idx_type=input.linear_idx_type, element_size=input.element_size], output: TileTensor[output_type, output.LayoutType, output.origin, linear_idx_type=output.linear_idx_type, element_size=output.element_size], n: Int, buffer_size_mb: Int, ctx: DeviceContext)

Compute the inverse real FFT of the input tensor.

Currently, only applies it to the last dimension.

Args:

  • input (TileTensor): Complex input tensor (TileTensor).
  • output (TileTensor): Real output tensor (TileTensor).
  • n (Int): Output signal size (if <= 0, computed as 2*(input.size(axis) - 1)).
  • buffer_size_mb (Int): Estimated buffer size in MB.
  • ctx (DeviceContext): Device context.

Was this page helpful?