(py: Python<'_>)
| 22 | } |
| 23 | |
| 24 | fn not_contiguous_array(py: Python<'_>) -> Bound<'_, PyArray1<i32>> { |
| 25 | py.eval( |
| 26 | c_str!("np.array([1, 2, 3, 4], dtype='int32')[::2]"), |
| 27 | None, |
| 28 | Some(&get_np_locals(py)), |
| 29 | ) |
| 30 | .unwrap() |
| 31 | .cast_into() |
| 32 | .unwrap() |
| 33 | } |
| 34 | |
| 35 | fn not_aligned_array(py: Python<'_>) -> Bound<'_, PyArray1<u16>> { |
| 36 | py.eval( |