Transpose of a matrix (transpose)
Transpose of a matrix: its rows become its columns.
How to write it
transpose(matrix)
- matrix
- A matrix, written as a list of rows. Takes a matrix, written as a list of rows.
Examples
transpose([[1, 2, 3], [4, 5, 6]])In the solver,
Open in the solvertranspose([[1, 2, 3], [4, 5, 6]])gives[[1, 4], [2, 5], [3, 6]].
Related functions
- upper_triangularize
A matrix with the entries below the diagonal set to zero.
- trace
Trace of a square matrix: the sum of its diagonal.
- adjugate
Adjugate of a square matrix: the transpose of its cofactors.
- tensor_product
Tensor product of two lists or matrices.
- characteristic_polynomial
Characteristic polynomial of a square matrix in a variable.
- smith_decomposition
Smith normal form of an integer matrix, with the two matrices that reach it.