transpose_matrix

compas.geometry.transpose_matrix(M)[source]

Transpose a matrix.

Parameters

M (list[list[float]] | Transformation) – The matrix to be transposed.

Returns

list[list[float]] – The result matrix.