Skip to content

Commit 02ab691

Browse files
committed
fix ambiguities with new IA version
1 parent ad7fa08 commit 02ab691

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/operations/mult.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ function set_multiplication_mode(multype)
4545
*(A::$T, B::IntervalMatrix) = *($type, A, B)
4646
end
4747
end
48+
# disambiguation with IntervalArithmetic's `RealOrComplexI`
49+
@static if vIA >= v"0.22.17" # COV_EXCL_LINE
50+
for T in [:(AbstractMatrix{<:IntervalArithmetic.RealOrComplexI})]
51+
@eval begin
52+
*(A::IntervalMatrix, B::$T) = *($type, A, B)
53+
*(A::$T, B::IntervalMatrix) = *($type, A, B)
54+
end
55+
end
56+
end
4857

4958
return config[:multiplication] = multype
5059
end

0 commit comments

Comments
 (0)