Skip to content

Commit

Permalink
Merge pull request #265 from JuliaReach/schillic/disambiguate
Browse files Browse the repository at this point in the history
Fix ambiguities with new IntervalArithmetic version
  • Loading branch information
schillic authored Nov 19, 2024
2 parents ad7fa08 + a66b137 commit 158de5e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/operations/mult.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,19 @@ function set_multiplication_mode(multype)
*(A::IntervalMatrix, B::$T) = *($type, A, B)
*(A::$T, B::IntervalMatrix) = *($type, A, B)
end
end # COV_EXCL_LINE

# disambiguation with IntervalArithmetic's `RealOrComplexI`
# COV_EXCL_START
@static if vIA >= v"0.22.17"
for T in [:(AbstractMatrix{<:IntervalArithmetic.RealOrComplexI})]
@eval begin
*(A::IntervalMatrix, B::$T) = *($type, A, B)
*(A::$T, B::IntervalMatrix) = *($type, A, B)
end
end
end
# COV_EXCL_END

return config[:multiplication] = multype
end
Expand Down

0 comments on commit 158de5e

Please sign in to comment.