ArrayTools - Maple Programming Help

Home : Support : Online Help : Programming : Low-level Manipulation : Matrices, Vectors, and Arrays : ArrayTools : ArrayTools/Reverse

ArrayTools

 Reverse
 reverse the entries of a Matrix, Vector, or Array

 Calling Sequence Reverse(A)

Parameters

 A - Matrix, Vector, or Array

Description

 • The Reverse command reverses the elements of a Matrix, Vector, or Array into a new Matrix, Vector, or Array of the same shape.

Examples

 > $\mathrm{with}\left(\mathrm{ArrayTools}\right):$
 > $A≔\mathrm{Array}\left(\left[1,2,3,4\right]\right)$
 ${A}{≔}\left[\begin{array}{cccc}{1}& {2}& {3}& {4}\end{array}\right]$ (1)
 > $\mathrm{ArrayTools}:-\mathrm{Reverse}\left(A\right)$
 $\left[\begin{array}{cccc}{4}& {3}& {2}& {1}\end{array}\right]$ (2)

Compatibility

 • The ArrayTools[Reverse] command was introduced in Maple 2019.