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