ndarray_linalg::generate

Function from_diag

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

construct matrix from diag