Skip to content

Commit

Permalink
Merge pull request JuliaLang#9603 from kshyatt/rotationdoc
Browse files Browse the repository at this point in the history
Added documentation of rotation functions [ci skip]
  • Loading branch information
tkelman committed Jan 4, 2015
2 parents 278d9a0 + fbfcbed commit 726e630
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/stdlib/arrays.rst
Original file line number Diff line number Diff line change
Expand Up @@ -444,14 +444,29 @@ Array functions

Rotate matrix ``A`` 180 degrees.

.. function:: rot180(A, k)

Rotate matrix ``A`` 180 degrees an integer ``k`` number of times.
If ``k`` is even, this is equivalent to a ``copy``.

.. function:: rotl90(A)

Rotate matrix ``A`` left 90 degrees.

.. function:: rotl90(A, k)

Rotate matrix ``A`` left 90 degrees an integer ``k`` number of times. If ``k``
is zero or a multiple of four, this is equivalent to a ``copy``.

.. function:: rotr90(A)

Rotate matrix ``A`` right 90 degrees.

.. function:: rotr90(A, k)

Rotate matrix ``A`` right 90 degrees an integer ``k`` number of times. If ``k``
is zero or a multiple of four, this is equivalent to a ``copy``.

.. function:: reducedim(f, A, dims, initial)

Reduce 2-argument function ``f`` along dimensions of ``A``. ``dims`` is a
Expand Down

0 comments on commit 726e630

Please sign in to comment.