micropython-ulab/code
Jeff Epler f9fabc5079 Fix handling of negative indices
I don't know why, but mp_seq_get_fast_slice_indexes adjusts "stop" in a
surprising way, and that led to the (remaining) differences in slicing
between ulab and built-in lists.

    // If the index is negative then stop points to the last item, not after it
    if (indexes->step < 0) {
        indexes->stop++;
    }

Call the underlying routine, mp_obj_slice_indices, instead.
2020-02-29 17:00:42 -06:00
..
create.c added new source file... 2020-02-27 20:46:52 +01:00
create.h Always include creation functions 2020-02-27 14:07:04 -06:00
extras.c added extras.h/extras.c 2020-02-16 19:49:28 +01:00
extras.h added extras.h/extras.c 2020-02-16 19:49:28 +01:00
fft.c Remove CIRCUITPY special cases 2020-02-27 08:56:07 -06:00
fft.h roll back constness corrections 2020-02-18 21:00:30 -06:00
filter.c Remove CIRCUITPY special cases 2020-02-27 08:56:07 -06:00
filter.h roll back constness corrections 2020-02-18 21:00:30 -06:00
linalg.c created new create sub-module for ndarray initialisation functions 2020-02-27 20:39:13 +01:00
linalg.h created new create sub-module for ndarray initialisation functions 2020-02-27 20:39:13 +01:00
micropython.mk created new create sub-module for ndarray initialisation functions 2020-02-27 20:39:13 +01:00
ndarray.c Fix handling of negative indices 2020-02-29 17:00:42 -06:00
ndarray.h properties are now defined in ndarray_properties.h 2020-02-16 19:49:01 +01:00
ndarray_properties.h Use circuitpy-compat for none 2020-02-27 08:56:04 -06:00
numerical.c created new create sub-module for ndarray initialisation functions 2020-02-27 20:39:13 +01:00
numerical.h created new create sub-module for ndarray initialisation functions 2020-02-27 20:39:13 +01:00
poly.c Remove CIRCUITPY special cases 2020-02-27 08:56:07 -06:00
poly.h roll back constness corrections 2020-02-18 21:00:30 -06:00
ulab.c Always include creation functions 2020-02-27 14:07:04 -06:00
ulab.h created new create sub-module for ndarray initialisation functions 2020-02-27 20:39:13 +01:00
vectorise.c Remove CIRCUITPY special cases 2020-02-27 08:56:07 -06:00
vectorise.h properties are now defined in ndarray_properties.h 2020-02-16 19:49:01 +01:00