(slf: &Bound<'_, PyArray<T, D>>, index: Idx)
| 1351 | |
| 1352 | #[inline(always)] |
| 1353 | fn get_raw<T, D, Idx>(slf: &Bound<'_, PyArray<T, D>>, index: Idx) -> Option<*mut T> |
| 1354 | where |
| 1355 | T: Element, |
| 1356 | D: Dimension, |
| 1357 | Idx: NpyIndex<Dim = D>, |
| 1358 | { |
| 1359 | let offset = index.get_checked::<T>(slf.shape(), slf.strides())?; |
| 1360 | Some(unsafe { slf.data().offset(offset) }) |
| 1361 | } |
| 1362 | |
| 1363 | fn as_view<T, D, S, F>(slf: &Bound<'_, PyArray<T, D>>, from_shape_ptr: F) -> ArrayBase<S, D> |
| 1364 | where |