transpose - Maple Help

# Online Help

###### All Products    Maple    MapleSim

MTM

 transpose
 matrix transpose

 Calling Sequence transpose(M)

Parameters

 M - matrix, vector or array

Description

 • The transpose(M) function computes the transpose of the matrix M. The result, R, is given by R[i,j] = M[j,i].

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $M≔\mathrm{Matrix}\left(\left[\left[1,2\right],\left[3,4\right]\right]\right):$
 > $\mathrm{transpose}\left(M\right)$
 $\left[\begin{array}{cc}{1}& {3}\\ {2}& {4}\end{array}\right]$ (1)
 > $M≔\mathrm{Array}\left(\left[1,2\right]\right):$
 > $\mathrm{transpose}\left(M\right)$
 $\left[\begin{array}{c}{1}\\ {2}\end{array}\right]$ (2)

 See Also