HP Prime for All

English  Русский 

Syntax

rowSwap(Mtrx(A),Intg(n1),Intg(n2))

Description

Returns the matrix obtained from A by swapping the n1th row and the n2th row

Example

rowSwap([[1,2],[3,4],[5,6]],1,2) returns [[1,2],[5,6],[3,4]]

rowSwap — Discussion