-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
show(::OffsetArrays.IdOffsetRange
should show its type
#121
Comments
I second this, mind submitting a PR? |
It is a good argument. However, I'm not very positive to this: Before: julia> Ao = zeros(-3:3, -3:3)
7×7 OffsetArray(::Array{Float64,2}, -3:3, -3:3) with eltype Float64 with indices -3:3×-3:3:
...
julia> axes(Ao)
(-3:3, -3:3) After: (pretty hard to get the necessary axes information) julia> Ao = zeros(-3:3, -3:3)
7×7 OffsetArray(::Array{Float64,2}, OffsetArrays.IdOffsetRange(-3:3), OffsetArrays.IdOffsetRange(-3:3)) with eltype Float64 with indices OffsetArrays.IdOffsetRange(-3:3)×OffsetArrays.IdOffsetRange(-3:3):
...
julia> axes(Ao)
(OffsetArrays.IdOffsetRange(-3:3), OffsetArrays.IdOffsetRange(-3:3)) |
The summary might be modified to use a compact notation, displaying only the indices and not the type. Displaying the type in julia> axes(zeros(4,4))
(Base.OneTo(4), Base.OneTo(4)) |
How about -3ₒₐ:3ₒₐ 😆 |
Unfortunately, |
I think this might be misleading, as I mentioned in #120 (comment)
The text was updated successfully, but these errors were encountered: