transpose

void transpose() noexcept

Transposes the matrix in-place.

Parameters

(None)

Returns

(None)

Exceptions

this function guarantees not to throw a LibsemigroupsException.

Complexity

\(O(mn)\) where \(m\) is the template parameter R and \(n\) is the template parameter C.

Warning

This only works when the template parameters R and C are equal (i.e. for square matrices).