rowMove#
- swordfish.function.rowMove()#
The rowMove function shifts the elements in each row of X left or right by a specified number of steps.
- Parameters:
X (Constant) – A matrix, array vector, columnar tuple, or tuple with equal-length vectors.
steps (Constant) –
An integer indicating the length to shift the row elements of X.
if steps is positive, the elements in each row are shifted to the right by steps position(s).
if steps is negative, the elements in each row are shifted to the left by steps position(s).
if steps is 0, X is not shifted.