 CircularShift - Maple Help

ArrayTools

 CircularShift
 shift Array data Calling Sequence CircularShift(A, dim1, dim2, ...) Parameters

 A - Matrix, Vector, or Array dimN - integer; amount to shift per dimension Description

 • 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](..). Examples

 > $\mathrm{with}\left(\mathrm{ArrayTools}\right):$
 > $A≔\mathrm{CircularShift}\left(\mathrm{Array}\left(\left[\left[a,b,c\right],\left[d,e,f\right],\left[g,h,i\right]\right]\right),1,2\right)$
 ${A}{≔}\left[\begin{array}{ccc}{h}& {i}& {g}\\ {b}& {c}& {a}\\ {e}& {f}& {d}\end{array}\right]$ (1)
 > $\mathrm{CircularShift}\left(A,2,1\right)$
 $\left[\begin{array}{ccc}{a}& {b}& {c}\\ {d}& {e}& {f}\\ {g}& {h}& {i}\end{array}\right]$ (2)