fvec_ishift 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 'ifftshift' in the Matlab Signal Processing Toolbox, can be used after computing the inverse FFT to simplify the phase relationship of the resulting spectrum. See Amalia de Götzen's paper referred to above.
Implementation
void fvec_ishift(
ffi.Pointer<fvec_t> v,
) {
return _fvec_ishift(
v,
);
}