Reverse - Maple Help

Online Help

All Products    Maple    MapleSim


ArrayTools

  

Reverse

  

reverse the entries of a Matrix, Vector, or Array

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Reverse(A)

Parameters

A

-

Matrix, Vector, or Array

Options

• 

inplace : (optional) true or false, with default false

Description

• 

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

• 

When inplace=true, the reversal of elements is performed in-place.

Examples

withArrayTools:

AArray1,2,3,4

A1234

(1)

ReverseA

4321

(2)

BVectora,b,c,d,e

Babcde

(3)

ReverseB,inplace:

B

edcba

(4)

Compatibility

• 

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

• 

For more information on Maple 2019 changes, see Updates in Maple 2019.

See Also

ArrayTools

ArrayTools[Alias]