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
I dug into this a bit. Best I can tell, the iteration in BlockArrays (which GradedUnitRange is implemented through) internally calls to a function inc which produces the next value in the iteration by adding the integer 1, like this:
(the above is line 411 of BlockArrays/src/blockindices.jl).
Then for a labeled integer, adding +1 returns a regular integer. So I think that is the origin of the current behavior.
(Just giving some background so we can consider the next step to take / fix.)
mtfishman
changed the title
[NDTensors] [BUG] Iterating over GradedUnitRange yields unexpected type change
[GradedAxes] [BUG] Iterating over GradedUnitRange yields unexpected type change
May 10, 2024
outputs
with a change in iterator type beyond the first element. One obtains the same result with
s in eachindex(g1)
(I guess they are the same internally)The text was updated successfully, but these errors were encountered: