pub fn rfft2<'a>(
a: impl AsRef<Array>,
s: impl IntoOption<&'a [i32]>,
axes: impl IntoOption<&'a [i32]>,
) -> Result<Array>
Expand description
Two-dimensional real discrete Fourier Transform.
The output has the same shape as the input except along the dimensions in axes
in which case
it has sizes from s
. The last axis in axes
is treated as the real axis and will have size
s[s.len()-1] // 2 + 1
.
ยงParams
a
: The input array. If the array is complex it will be silently cast to a real type.s
: Sizes of the transformed axes. The corresponding axes in the input are truncated or padded with zeros to matchs
. The default value is the sizes ofa
alongaxes
.axes
: Axes along which to perform the FFT. The default is[-2, -1]
.