ndarray
ndarray copied to clipboard
Add missing safety checks to `From<&[[A; N]]> for ArrayView` and `From<&mut [[A; N]]> for ArrayViewMut`
While reviewing #1130, I noticed these missing checks introduced in #980. In the first commit, the new deny_slice_with_too_many_rows_to_arrayview*2
tests fail in release mode. The second commit fixes the code so that the tests pass.