pub fn strides(&self) -> &[isize] {
        let n = self.ndim();
        let ptr = self.as_array_ptr();
        unsafe {
            let p = (*ptr).strides;
            slice::from_raw_parts(p, n)
        }
    }
/// Returns a slice which contains how many bytes you need to jump to the next row.
///
/// Same as [numpy.ndarray.strides](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.strides.html)
/// # Example
/// ```
/// use numpy::PyArray3;
/// pyo3::Python::with_gil(|py| {
///     let arr = PyArray3::<f64>::new(py, [4, 5, 6], false);
///     assert_eq!(arr.strides(), &[240, 48, 8]);
/// });
/// ```
// C API: https://numpy.org/doc/stable/reference/c-api/array.html#c.PyArray_STRIDES
Returns a slice which contains how many bytes you need to jump to the next row.
Returns a slice which contains how many bytes you need to jump to the next row .
pub fn strides(&self) -> &[isize] {
        let n = self.ndim();
        let ptr = self.as_array_ptr();
        unsafe {
            let p = (*ptr).strides;
            slice::from_raw_parts(p, n)
        }
    }
pub fn strides ( & self ) -> & [ isize ] { let n = self . ndim ( ) ; let ptr = self . as_array_ptr ( ) ; unsafe { let p = ( * ptr ) . strides ; slice :: from_raw_parts ( p , n ) } }
Returns a slice which contains how many bytes you need to jump to the next row.
Returns a slice which contains how many bytes you need to jump to the next row .
&self
example
None