Skip to content

make A[begin:stride:end] work#4

Open
bjarthur wants to merge 4 commits intoJuliaIO:mainfrom
bjarthur:bja/index
Open

make A[begin:stride:end] work#4
bjarthur wants to merge 4 commits intoJuliaIO:mainfrom
bjarthur:bja/index

Conversation

@bjarthur
Copy link
Copy Markdown
Member

also mostly from claude

@mkitti
Copy link
Copy Markdown
Member

mkitti commented Apr 16, 2026

Thr main deficit is that begin and end do not work for indexing, I believe.

@bjarthur
Copy link
Copy Markdown
Member Author

they work for me with this PR. i'll add some tests.

julia> size(A)
(1000, 20000)

julia> A[1:3:10,1]
TensorStore(UInt32, rank=1, shape=(4,))

julia> A[1:3:10,1].read().result()
4-element PyArray{UInt32, 1}:
 0x00000000
 0x00000000
 0x00000000
 0x00000000

julia> A[begin:3:10,1].read().result()
4-element PyArray{UInt32, 1}:
 0x00000000
 0x00000000
 0x00000000
 0x00000000

julia> A[end-10:3:end,1].read().result()
4-element PyArray{UInt32, 1}:
 0x00000000
 0x00000000
 0x00000000
 0x00000000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants