Skip to content

BoundsError while calling svd #79

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

Closed
lkapelevich opened this issue Sep 10, 2021 · 1 comment · Fixed by #80
Closed

BoundsError while calling svd #79

lkapelevich opened this issue Sep 10, 2021 · 1 comment · Fixed by #80

Comments

@lkapelevich
Copy link

The following is using GenericLinearAlgebra on master:

julia> A = rand(BigFloat, 1, 2)
1×2 Matrix{BigFloat}:
 0.343118  0.899983

julia> svd(A)
ERROR: BoundsError: attempt to access 1×2 Matrix{BigFloat} at index [1:2, 1:2]
Stacktrace:
 [1] throw_boundserror(A::Matrix{BigFloat}, I::Tuple{UnitRange{Int64}, UnitRange{Int64}})
   @ Base .\abstractarray.jl:691
 [2] checkbounds
   @ .\abstractarray.jl:656 [inlined]
 [3] _setindex!
   @ .\multidimensional.jl:917 [inlined]
 [4] setindex!
   @ .\abstractarray.jl:1315 [inlined]
 [5] svd!(A::Matrix{BigFloat}; tol::BigFloat, full::Bool, alg::LinearAlgebra.DivideAndConquer, debug::Bool)
   @ GenericLinearAlgebra C:\Users\lkape\.julia\packages\GenericLinearAlgebra\z4KPO\src\svd.jl:570
 [6] svd(A::Matrix{BigFloat}; full::Bool, alg::LinearAlgebra.DivideAndConquer)
   @ LinearAlgebra C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.8\LinearAlgebra\src\svd.jl:176
 [7] svd(A::Matrix{BigFloat})
   @ LinearAlgebra C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.8\LinearAlgebra\src\svd.jl:176
 [8] top-level scope
   @ REPL[19]:1
@andreasnoack
Copy link
Member

Thanks for reporting this. I just found the issue so a bugfix release should be available shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants