Function torch::fft::ihfft¶
Defined in File fft.h
Function Documentation¶
-
inline Tensor torch::fft::ihfft(const Tensor &self, c10::optional<SymInt> n = c10::nullopt, int64_t dim = -1, c10::optional<c10::string_view> norm = c10::nullopt)¶
Computes the inverse FFT of a real-valued Fourier domain signal.
The output is a onesided representation of the Hermitian symmetric time domain signal. See https://pytorch.org/docs/main/fft.html#torch.fft.ihfft.
Example:
auto T = torch::randn(128, torch::kDouble); auto t = torch::fft::ihfft(T); assert(t.is_complex() && T.numel() == 128 / 2 + 1);