Algosim documentation: transpose

transpose

Transpose of a matrix.

Syntax

Description

If A is a matrix, then transpose(A) is the transpose of A. Vectors are treated like column matrices, so if v is a vector, then transpose(v) is the row matrix containing the components of v.

Examples

A ≔ ❨❨2, 1, −i❩, ❨1, 0, 2❩, ❨4, i, 2❩, ❨0, 1, −1❩❩
⎛ 2   1  −i⎞
⎜ 1   0   2⎟
⎜ 4   i   2⎟
⎝ 0   1  −1⎠
transpose(A)
⎛ 2   1   4   0⎞
⎜ 1   0   i   1⎟
⎝−i   2   2  −1⎠
transpose(❨2, 1, i❩)
(2  1  i)

See also