48 template<
typename dtype>
57 auto shift = inX.
size() / 2;
58 shift += inX.
size() % 2 == 1 ? 1 : 0;
59 return roll(inX, shift, inAxis);
64 shift += inX.
numCols() % 2 == 1 ? 1 : 0;
65 return roll(inX, shift, inAxis);
70 shift += inX.
numRows() % 2 == 1 ? 1 : 0;
71 return roll(inX, shift, inAxis);
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:37
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:56
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
size_type size() const noexcept
Definition: NdArrayCore.hpp:4604
size_type numCols() const noexcept
Definition: NdArrayCore.hpp:3545
size_type numRows() const noexcept
Definition: NdArrayCore.hpp:3557
Definition: FFT/fft.hpp:40
NdArray< dtype > ifftshift(const NdArray< dtype > &inX, Axis inAxis=Axis::NONE)
Definition: ifftshift.hpp:49
Axis
Enum To describe an axis.
Definition: Enums.hpp:36
NdArray< dtype > roll(const NdArray< dtype > &inArray, int32 inShift, Axis inAxis=Axis::NONE)
Definition: roll.hpp:52