Function torch::fft::rfftn¶
Defined in File fft.h
Function Documentation¶
-
inline Tensor torch::fft::rfftn(const Tensor &self, at::OptionalIntArrayRef s = std::nullopt, at::OptionalIntArrayRef dim = std::nullopt, std::optional<c10::string_view> norm = std::nullopt)¶
Computes the N dimensional FFT of real input with onesided Hermitian output.
See https://pytorch.org/docs/main/fft.html#torch.fft.rfftn
Example:
auto t = torch::randn({128, 128}, dtype=kDouble); torch::fft::rfftn(t);