Function torch::fft::ihfft2¶
Defined in File fft.h
Function Documentation¶
-
inline Tensor torch::fft::ihfft2(const Tensor &self, at::OptionalIntArrayRef s = std::nullopt, IntArrayRef dim = {-2, -1}, std::optional<c10::string_view> norm = std::nullopt)¶
Computes the 2-dimensional IFFT of a real input signal.
The output is a onesided representation of the Hermitian symmetric time domain signal. See https://pytorch.org/docs/main/fft.html#torch.fft.ihfft2.
Example:
auto T = torch::randn({128, 128}, torch::kDouble); auto t = torch::fft::hfft2(T); assert(t.is_complex() && t.size(1) == 65);