transpose_in_place

Function transpose_in_place 

Source
pub fn transpose_in_place<T, L>(c: &mut DSlice<T, 2, L>)
where T: ComplexFloat + Default, L: Layout,
Expand description

Transposes a matrix in-place. Dimensions stay the same, only the memory ordering changes.

  • For square matrices: swaps elements across the main diagonal.
  • For rectangular matrices: reshuffles data in a temporary buffer so that the same (rows, cols) slice now represents the transposed layout.