Function torch::fft::fftfreq(int64_t, double, const TensorOptions&)¶
Defined in File fft.h
Function Documentation¶
-
inline Tensor torch::fft::fftfreq(int64_t n, double d, const TensorOptions &options = {})¶
Computes the discrete Fourier Transform sample frequencies for a signal of size n.
See https://pytorch.org/docs/main/fft.html#torch.fft.fftfreq
Example:
auto frequencies = torch::fft::fftfreq(128, torch::kDouble);