pub fn from_diag<A>(d: &[A]) -> Array2<A>where
    A: Scalar,
Expand description

construct matrix from diag