SciML / JumpProcesses.jl

Build and simulate jump equations like Gillespie simulations and jump diffusions with constant and state-dependent rates and mix with differential equations and scientific machine learning (SciML)
https://docs.sciml.ai/JumpProcesses/stable/
Other
136 stars 35 forks source link

Ambiguity of `ldiv!` in 1.9 #289

Closed KristofferC closed 1 year ago

KristofferC commented 1 year ago

https://github.com/JuliaLang/julia/pull/47107 relaxed the signature of ldiv! causing the following ambiguity:

Variable Rate Tests: Error During Test at /home/pkgeval/.julia/packages/SafeTestsets/A83XK/src/SafeTestsets.jl:25
  Got exception outside of a @test
  LoadError: MethodError: ldiv!(::LinearAlgebra.LU{Float64, Matrix{Float64}, Vector{Int64}}, ::ExtendedJumpArray{Float64, 1, Vector{Float64}, Vector{Float64}}) is ambiguous.

  Candidates:
    ldiv!(A, b::ExtendedJumpArray)
      @ JumpProcesses ~/.julia/packages/JumpProcesses/a8QEW/src/extended_jump_array.jl:103
    ldiv!(A::LinearAlgebra.LU, B::AbstractVecOrMat)
      @ LinearAlgebra /opt/julia/share/julia/stdlib/v1.9/LinearAlgebra/src/lu.jl:427

  Possible fix, define
    ldiv!(::LinearAlgebra.LU, ::ExtendedJumpArray)