Kotlin / multik

Multidimensional array library for Kotlin
https://kotlin.github.io/multik/
Apache License 2.0
641 stars 39 forks source link

Multik equivalents for numpy [:, :, ::-1] #208

Open Trevol opened 3 weeks ago

Trevol commented 3 weeks ago

Hi! Are there multik equivalents for numpy expressions listed below? rgb_image = bgr_image[:, :, ::-1] rgb_image = bgr_image[:, :, [2, 1, 0]]

Thanks.

devcrocod commented 2 weeks ago

Hi

Yes, there is There's sl.bounds, and also Slice class Negative indices are also supported.

In my opinion, this is not the best API for boundaries, so I'm considering improving it