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

Mixed matrix multiplication is broken with new versions of IntervalArithmetic #270

Closed
schillic opened this issue Jan 25, 2025 · 1 comment
Labels

Comments

@schillic
Copy link
Member

julia> A = hcat(interval(1, 2))
1×1 Matrix{Interval{Float64}}:
 [1.0, 2.0]_com

julia> B = hcat(1)
1×1 Matrix{Int64}:
 1

julia> A * B
┌ Warning: invalid interval, NaI is returned
└ @ IntervalArithmetic ~/.julia/packages/IntervalArithmetic/GSwKs/src/intervals/construction.jl:462
┌ Warning: interval part of NaI
└ @ IntervalArithmetic ~/.julia/packages/IntervalArithmetic/GSwKs/src/intervals/construction.jl:300
┌ Warning: interval part of NaI
└ @ IntervalArithmetic ~/.julia/packages/IntervalArithmetic/GSwKs/src/intervals/construction.jl:300
1×1 Matrix{Interval{Float64}}:
 ∅_ill_NG

The same happens if A is an IntervalMatrix.
Options:

  • Restrict the IntervalArithmetic version again.
  • Forbid mixing interval matrices with normal matrices.
  • Auto-convert normal matrices to interval matrices before multiplying.
@schillic schillic added bug Something isn't working discussion labels Jan 25, 2025
@schillic schillic added fix and removed bug Something isn't working discussion labels Jan 26, 2025
@schillic
Copy link
Member Author

It turned out to be a recently introduced bug in IntervalArithmetic, which was now fixed (and a new release will hopefully appear soon).

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

No branches or pull requests

1 participant