Skip to content
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

getindex is broken for Diagonal #162

Closed
jakebolewski opened this issue Feb 1, 2015 · 1 comment
Closed

getindex is broken for Diagonal #162

jakebolewski opened this issue Feb 1, 2015 · 1 comment
Assignees

Comments

@jakebolewski
Copy link
Member

julia> D = Diagonal(Int[])
0x0 Diagonal{Int64}

julia> D[-1]
ERROR: integer division error
 in getindex at linalg/diagonal.jl:30

julia> D[-1,-1]
ERROR: BoundsError()
 in getindex at linalg/diagonal.jl:26

julia> D[1,1
       ]
ERROR: BoundsError()
 in getindex at linalg/diagonal.jl:26

julia> D[2]
ERROR: integer division error
 in getindex at linalg/diagonal.jl:30

julia> D[1,-1]
0
@mbauman
Copy link
Member

mbauman commented Jun 12, 2015

Fixed by JuliaLang/julia@c73da0c and JuliaLang/julia#10525.

@mbauman mbauman closed this as completed Jun 12, 2015
fcard referenced this issue in fcard/julia Jul 8, 2015
Fixes the last remaining issue in #9991
@KristofferC KristofferC transferred this issue from JuliaLang/julia Nov 26, 2024
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

No branches or pull requests

3 participants