transpose_matrix

compas.geometry.transpose_matrix(M)[source]

Transpose a matrix.

Parameters

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

Returns

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