You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a pattern that we need to explore:
We want slices of
simd,
contiguous_container (e.g. span, vector), and
(strided) slices for mdpsan.
More?
Many other languages have syntax to support this. E.g. Python:
a[start:stop] # items start through stop-1a[start:] # items start through the rest of the arraya[:stop] # items from the beginning through stop-1a[:] # a copy of the whole arraya[start:stop:step] # start through not past stop, by stepa[-1] # last item in the arraya[-2:] # last two items in the arraya[:-2] # everything except the last two itemsa[::-1] # all items in the array, reverseda[1::-1] # the first two items, reverseda[:-3:-1] # the last two items, reverseda[-3::-1] # everything except the last two items, reversed
extract<0, 4>(v) could be written as v[0:4] with that syntax.
The text was updated successfully, but these errors were encountered:
There seems to be a pattern that we need to explore:
We want slices of
simd
,contiguous_container
(e.g.span
,vector
), andmdpsan
.More?
Many other languages have syntax to support this. E.g. Python:
extract<0, 4>(v)
could be written asv[0:4]
with that syntax.The text was updated successfully, but these errors were encountered: