ArrayTools
CircularShift
shift Array data
Calling Sequence
Parameters
Description
Examples
CircularShift(A, dim1, dim2, ...)
A
-
Matrix, Vector, or Array
dimN
integer; amount to shift per dimension
The CircularShift command shifts Array A along its dimensions by the values specified by dimN. Elements being pushed off the edge of the rtable appear back on the other side.
This function is part of the ArrayTools package, so it can be used in the short form CircularShift(..) only after executing the command with(ArrayTools). However, it can always be accessed through the long form of the command by using ArrayTools[CircularShift](..).
with⁡ArrayTools:
A≔CircularShift⁡Array⁡a,b,c,d,e,f,g,h,i,1,2
A≔higbcaefd
CircularShift⁡A,2,1
abcdefghi
See Also
Download Help Document