fftshift1D#

Perform a 1D shift by shifting the zero-frequency component to the center of the tensor

template<typename T1>
auto matx::fftshift1D(T1 t)#

Perform an FFTShift operation on the last dimension of a tensor

Shifts the new indexing of the tensor’s last dimension to begin at Size()/2. MatX FFTs leave the sample order starting with DC, positive frequencies, then negative frequencies last. FFTShift gives a shifted view of a signal where the new order is negative frequencies, DC, then positive frequencies.

Template Parameters:

T1 – Type of View/Op

Parameters:

t – View/Op to shift

Examples#