diag

Function diag 

Source
pub fn diag<A>(v: &Array1<A>) -> Array2<A>
where A: Clone + Zero,
Expand description

Create a diagonal matrix from a vector