// Out-place
KokkosFFT::rfft(execution_space(), x, x_hat, KokkosFFT::Normalization::backward, axis); // FFT along -1 axis and batched along 0th axis
// In-place (x2 should have a size of n+2)
KokkosFFT::rfft(execution_space(), x2, KokkosFFT::Normalization::backward, axis); // FFT along -1 axis and batched along 0th axis
Interface should be something like this
Basic API
To reuse plans
Internally, check the address of input and output views. If it is identical, then construct an in-place plan.