Function diag_extract
Source pub fn diag_extract<T>(input: &Array<T>, dim: i32) -> Array<T>
Expand description
Extract diagonal from a given Matrix
§Parameters
input is the input Matrix
dim is the index of the diagonal that has to be extracted from the input Matrix
§Return Values
An Array with values of the diagonal from input Array