rotate the minor-axis of a 2D array by the specified amount to the right. the original array is mutated
given a row-major (and column-minor) 2D array arr2d, this function would rotate its columns by the specified amount.
a positive amount would rotate the columns to the right, and a negative amount would rotate it to the left.
rotate the minor-axis of a 2D array by the specified amount to the right. the original array is mutated
given a row-major (and column-minor) 2D array
arr2d
, this function would rotate its columns by the specifiedamount
.a positive
amount
would rotate the columns to the right, and a negativeamount
would rotate it to the left.Example