Mojo function
irfft
irfft[input_rank: Int, input_type: DType, output_type: DType](input: NDBuffer[input_type, input_rank, origin], output: NDBuffer[output_type, input_rank, origin], n: Int, ctx: DeviceContext)
Compute the inverse real FFT of the input tensor.
Currently, only applies it to the last dimension.
Args:
- input (
NDBuffer[input_type, input_rank, origin]
): Complex input tensor (NDBuffer). - output (
NDBuffer[output_type, input_rank, origin]
): Real output tensor (NDBuffer). - n (
Int
): Output signal size (if <= 0, computed as 2*(input.size(axis) - 1)). - ctx (
DeviceContext
): Device context.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!