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 parameterC
.
Warning
This only works when the template parameters
R
andC
are equal (i.e. for square matrices).