Skip to main content

vec_transpose

Function vec_transpose 

Source
pub fn vec_transpose<T: Clone>(matrix: &[Vec<T>]) -> Vec<Vec<T>>
Expand description

Transpose a Vec<Vec<T>> (rows ↔ columns).

The input must be rectangular (all inner vecs same length).