to_col_major

Function to_col_major 

Source
pub fn to_col_major<T, L>(c: &DSlice<T, 2, L>) -> DTensor<T, 2>
where T: ComplexFloat + Default + Clone, L: Layout,
Expand description

Given an input matrix of shape (m × n), this function creates and returns a new matrix of shape (n × m), where each element at position (i, j) in the original is moved to position (j, i) in the result.