pub fn strides(&self) -> &[isize] {
        let n = self.ndim();
        let ptr = self.as_array_ptr();
        unsafe {
            let p = (*ptr).strides;
            ::std::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://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.strides.html)
/// # Example
/// ```
/// # extern crate pyo3; extern crate numpy; fn main() {
/// use numpy::PyArray3;
/// let gil = pyo3::Python::acquire_gil();
/// let arr = PyArray3::<f64>::new(gil.python(), [4, 5, 6], false);
/// assert_eq!(arr.strides(), &[240, 48, 8]);
/// # }
/// ```
// C API: https://docs.scipy.org/doc/numpy/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;
            ::std::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 ; :: std :: 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
&self
example
None
extern crate pyo3; extern crate numpy; fn main() {
None
}
None