transpose

Transpose a square matrix inplace.

@safe @nogc pure nothrow ref
Matrix!(T, C, C)
transpose
(
T
uint C
)
(
ref return Matrix!(T, C, C) mat
)

Examples

auto m1 = Mat2.fromRows(1, 2,
                        3, 4);
transpose(m1);
assert(m1 == Mat2.fromRows(1, 3,
                           2, 4));

Meta