ndarray_
linalg
0.16.0
In ndarray_
linalg::
generate
Function
ndarray_linalg
::
generate
::
from_diag
Copy item path
source
ยท
[
−
]
pub fn from_diag<A>(d: &
[A]
) ->
Array2
<A>
where A:
Scalar
,
Expand description
construct matrix from diag