pub fn arange(py: Python, start: T, stop: T, step: T) -> &Self {
        unsafe {
            let ptr = PY_ARRAY_API.PyArray_Arange(
                start.as_(),
                stop.as_(),
                step.as_(),
                T::npy_type() as i32,
            );
            Self::from_owned_ptr(py, ptr)
        }
    }
/// Return evenly spaced values within a given interval.
/// Same as [numpy.arange](https://numpy.org/doc/stable/reference/generated/numpy.arange.html).
///
/// See also [PyArray_Arange](https://numpy.org/doc/stable/reference/c-api/array.html#c.PyArray_Arange).
///
/// # Example
/// ```
/// use numpy::PyArray;
/// pyo3::Python::with_gil(|py| {
///     let pyarray = PyArray::arange(py, 2.0, 4.0, 0.5);
///     assert_eq!(pyarray.readonly().as_slice().unwrap(), &[2.0, 2.5, 3.0, 3.5]);
///     let pyarray = PyArray::arange(py, -2, 4, 3);
///     assert_eq!(pyarray.readonly().as_slice().unwrap(), &[-2, 1]);
/// });
Return evenly spaced values within a given interval.


Return evenly spaced values within a given interval .
pub fn arange(py: Python, start: T, stop: T, step: T) -> &Self {
        unsafe {
            let ptr = PY_ARRAY_API.PyArray_Arange(
                start.as_(),
                stop.as_(),
                step.as_(),
                T::npy_type() as i32,
            );
            Self::from_owned_ptr(py, ptr)
        }
    }
pub fn arange ( py : Python , start : T , stop : T , step : T ) -> & Self { unsafe { let ptr = PY_ARRAY_API . PyArray_Arange ( start . as_ ( ) , stop . as_ ( ) , step . as_ ( ) , T :: npy_type ( ) as i32 , ) ; Self :: from_owned_ptr ( py , ptr ) } }
Return evenly spaced values within a given interval.
Return evenly spaced values within a given interval .
py
Python
start
T
stop
T
step
T
example
None