shift Array data - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Low-level Manipulation : Matrices, Vectors, and Arrays : ArrayTools : ArrayTools/CircularShift

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

withArrayTools:

A:=CircularShiftArraya,b,c,d,e,f,g,h,i,1,2

A:=higbcaefd

(1)

CircularShiftA,2,1

abcdefghi

(2)

See Also

ArrayTools


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam