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

BUG: multroot failing with BigFloat #590

Open
KlausC opened this issue Jan 26, 2025 · 0 comments
Open

BUG: multroot failing with BigFloat #590

KlausC opened this issue Jan 26, 2025 · 0 comments

Comments

@KlausC
Copy link

KlausC commented Jan 26, 2025

julia> pb = BigInt[-1, 2, -1]
3-element Vector{BigInt}:
 -1
  2
 -1

julia> Polynomials.Multroot.multroot(Polynomials.Polynomial(pb))
ERROR: UndefRefError: access to undefined reference
Stacktrace:
  [1] getindex
    @ ./essentials.jl:917 [inlined]
  [2] getindex
    @ ./array.jl:930 [inlined]
  [3] getindex
    @ ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/LinearAlgebra/src/triangular.jl:286 [inlined]
  [4] copyto!(A::UpperTriangular{BigFloat, Matrix{BigFloat}}, B::UpperTriangular{BigFloat, Matrix{BigFloat}})
    @ LinearAlgebra ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/LinearAlgebra/src/triangular.jl:551
  [5] copy
    @ ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/LinearAlgebra/src/triangular.jl:190 [inlined]
  [6] refine_uvw!(u::Polynomials.MutableDenseViewPolynomial{…}, v::Polynomials.MutableDenseViewPolynomial{…}, w::Polynomials.MutableDenseViewPolynomial{…}, p::Polynomials.MutableDenseViewPolynomial{…}, q::Polynomials.MutableDenseViewPolynomial{…}, uv::Polynomials.MutableDenseViewPolynomial{…}, uw::Polynomials.MutableDenseViewPolynomial{…})
    @ Polynomials.NGCD ~/.julia/packages/Polynomials/kryT1/src/polynomials/ngcd.jl:543

A bug is found in ngcd.jl:543

where an uninitialized matrix of BigFloat is tried to be copyed.

@KlausC KlausC changed the title BUG: multiroot failing with BigFloat BUG: multroot failing with BigFloat Jan 26, 2025
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

1 participant