47 template<
typename dtype>
56 auto shift = inX.
size() / 2;
57 shift += inX.
size() % 2 == 1 ? 1 : 0;
58 return roll(inX, shift, inAxis);
63 shift += inX.
numCols() % 2 == 1 ? 1 : 0;
64 return roll(inX, shift, inAxis);
69 shift += inX.
numRows() % 2 == 1 ? 1 : 0;
70 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:135
size_type size() const noexcept
Definition NdArrayCore.hpp:4600
size_type numCols() const noexcept
Definition NdArrayCore.hpp:3541
size_type numRows() const noexcept
Definition NdArrayCore.hpp:3553
Definition FFT/FFT.hpp:40
NdArray< dtype > ifftshift(const NdArray< dtype > &inX, Axis inAxis=Axis::NONE)
Definition ifftshift.hpp:48
Axis
Enum To describe an axis.
Definition Enums.hpp:36
@ ROW
Definition Enums.hpp:38
@ COL
Definition Enums.hpp:39
@ NONE
Definition Enums.hpp:37
NdArray< dtype > roll(const NdArray< dtype > &inArray, int32 inShift, Axis inAxis=Axis::NONE)
Definition roll.hpp:52