Function ndarray_linalg::util::from_diag [] [src]

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

construct matrix from diag