Function torch::fft::rfftfreq(int64_t, double, const TensorOptions&)¶
Defined in File fft.h
Function Documentation¶
-
inline Tensor torch::fft::rfftfreq(int64_t n, double d, const TensorOptions &options)¶
Computes the sample frequencies for torch.fft.rfft with a signal of size n.
Like torch.fft.rfft, only the positive frequencies are included. See https://pytorch.org/docs/main/fft.html#torch.fft.rfftfreq
Example:
auto frequencies = torch::fft::rfftfreq(128, torch::kDouble);