---
title: "rfft"
sidebar_label: "rfft"
description: "Kotlin binding reference: rfft."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[rfft](rfft.md)

# rfft

[common]\
fun [rfft](rfft.md)(input: [Tensor](../Tensor/index.md), nFft: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)? = null, normalized: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false): [Tensor](../Tensor/index.md)

`rfft(input: Tensor, nFft: Long? = null, normalized: Boolean = false)`: the `rfft` operator. One-sided real FFT along the last axis: real `[..., n]` → interleaved (re, im) pairs `[..., n_fft/2 + 1, 2]`. `n_fft` defaults to the last axis's extent; `normalized` scales the spectrum by `1/sqrt(n_fft)`.