Function ndarray_linalg::generate::from_diag[][src]

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

construct matrix from diag