matrix_transpose
Flips a matrix over its diagonal, turning rows into columns and columns into rows. Use it to reorganize data or prepare matrices for multiplication.
Instructions
Transposes a matrix.
Args: matrix: The matrix to transpose as a list of lists.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> matrix_transpose([[1, 2], [3, 4]]) {'result': [[1, 3], [2, 4]]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrix | Yes |