28 Numerics library [numerics]

28.9 Basic linear algebra algorithms [linalg]

28.9.10 Transpose in-place transformation [linalg.transp] Introduction [linalg.transp.intro]

layout_transpose is an mdspan layout mapping policy that swaps the two indices, extents, and strides of any unique mdspan layout mapping policy.
The transposed function takes an mdspan representing a matrix, and returns a new mdspan representing the transpose of the input matrix.