Skip to main content

Module gen_rdft

Module gen_rdft 

Source
Expand description

RDFT codelet generation — R2HC and HC2R.

Generates optimized codelets matching the hand-written signatures in oxifft/src/rdft/codelets/mod.rs:

  • r2hc_N<T: Float>(x: &[T], y: &mut [Complex<T>]) — real to half-complex
  • hc2r_N<T: Float>(y: &[Complex<T>], x: &mut [T]) — half-complex to real (unnormalized)

R2HC output stores N/2+1 complex bins: Y[0]…Y[N/2]. Y[0].im and Y[N/2].im are always zero for real inputs. HC2R is the exact inverse butterfly; caller divides by N for true inverse.

Structs§

RdftInput
Parsed arguments for gen_rdft_codelet!(size = N, kind = R2hc | Hc2r).

Enums§

RdftKind
Which codelet direction to generate.

Functions§

generate
Generate a gen_rdft_codelet!(size = N, kind = R2hc|Hc2r) codelet.