Rotates an array about two specified dimensions
arot.Rd
Rotates an array about two specified dimensions by any number of 90 degree turns
Note
Function arot()
is not exactly equivalent to octave's
rotdim()
; in arot()
the order of the elements of
pair
matters because the rotation is clockwise when viewed
in the (pair[1],pair[2])
direction. Compare octave's
rotdim()
in which pair
is replaced with
sort(pair)
.
Note also that the rotation is about the first two dimensions
specified by pair
but if pair
has more than two elements
then these dimensions are also permuted.
Also note that function arot()
does not treat singleton
dimensions specially.