Rotates an array about two specified dimensions by any number of 90 degree turns
arot(a, rights = 1,pair=1:2)
The array to be rotated
Integer; number of right angles to turn
A two-element vector containing the dimensions to rotate with default meaning to rotate about the first two dimensions
arot() is not exactly equivalent to octave's
arot() the order of the elements of
pair matters because the rotation is clockwise when viewed
(pair,pair) direction. Compare octave's
rotdim() in which
pair is replaced with
Note also that the rotation is about the first two dimensions
pair but if
pair has more than two elements
then these dimensions are also permuted.
Also note that function
arot() does not treat singleton
Robin K. S. Hankin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.