From a66b1376de579a75041e1f457d30b39329666cf2 Mon Sep 17 00:00:00 2001 From: schillic Date: Tue, 19 Nov 2024 21:39:49 +0100 Subject: [PATCH] fix ambiguities with new IA version --- src/operations/mult.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/operations/mult.jl b/src/operations/mult.jl index 7d0f7fb..680e491 100644 --- a/src/operations/mult.jl +++ b/src/operations/mult.jl @@ -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