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 does not work anymore #694

Closed
schillic opened this issue Jan 25, 2025 · 2 comments
Closed

Mixed matrix multiplication does not work anymore #694

schillic opened this issue Jan 25, 2025 · 2 comments

Comments

@schillic
Copy link
Contributor

Is this intended (v0.22.21)?

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
@OlivierHnt
Copy link
Member

Thanks for reporting this issue. This is not intended, similar(::Array, ::Interval, ...) does not use our methods (A* interval(B) works fine).
Can you check that on the "master branch" everything works out for you?

@schillic
Copy link
Contributor Author

Yes, that works. Do you mind releasing the fix?

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

2 participants