Function diagonal_view
Source pub fn diagonal_view<A, S>(
array: &ArrayBase<S, Ix2>,
) -> Result<Array<A, Ix1>, CoreError>
Expand description
Create a copy of the diagonal of a 2D array
§Arguments
array - The array to view
§Returns
A copy of the diagonal of the array