Function ndarray_linalg::generate::from_diag

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

construct matrix from diag