Skip to content

Commit

Permalink
fix ambiguities with new IA version
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Nov 19, 2024
1 parent ad7fa08 commit 02ab691
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/operations/mult.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ function set_multiplication_mode(multype)
*(A::$T, B::IntervalMatrix) = *($type, A, B)
end
end
# disambiguation with IntervalArithmetic's `RealOrComplexI`
@static if vIA >= v"0.22.17" # COV_EXCL_LINE
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

return config[:multiplication] = multype
end
Expand Down

0 comments on commit 02ab691

Please sign in to comment.