fvec_shift method
swap the left and right halves of a vector
This function swaps the left part of the signal with the right part of the signal. Therefore
\f$ a0
, a1
, ..., a\frac{N}{2}
, a\frac{N}{2}+1
, ..., aN-1
, aN
\f$
becomes
\f$ a\frac{N}{2}+1
, ..., aN-1
, aN
, a0
, a1
, ..., a\frac{N}{2}
\f$
This operation, known as 'fftshift' in the Matlab Signal Processing Toolbox, can be used before computing the FFT to simplify the phase relationship of the resulting spectrum. See Amalia de Götzen's paper referred to above.
Implementation
void fvec_shift(
ffi.Pointer<fvec_t> v,
) {
return _fvec_shift(
v,
);
}