torch_fft_fft | R Documentation |
Computes the one dimensional discrete Fourier transform of input.
torch_fft_fft(self, n = NULL, dim = -1L, norm = NULL)
self |
(Tensor) the input tensor |
n |
(int) Signal length. If given, the input will either be zero-padded or trimmed to this length before computing the FFT. |
dim |
(int, optional) The dimension along which to take the one dimensional FFT. |
norm |
(str, optional) Normalization mode. For the forward transform, these correspond to:
|
The Fourier domain representation of any real signal satisfies the Hermitian
property: X[i] = conj(X[-i]).
This function always returns both the positive
and negative frequency terms even though, for real inputs, the negative
frequencies are redundant. rfft() returns the more compact one-sided representation
where only the positive frequencies are returned.
if (torch_is_installed()) {
t <- torch_arange(start = 0, end = 3)
t
torch_fft_fft(t, norm = "backward")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.