|
34 | 34 | # (there exist more precise approaches but are currently not implemented here) |
35 | 35 | \(M1::IntervalMatrix, M2::IntervalMatrix) = IntervalMatrix(M1.mat \ M2.mat) |
36 | 36 | # COV_EXCL_START |
37 | | -for T in (:AbstractMatrix, :Diagonal, :(Union{UpperTriangular,LowerTriangular}), |
38 | | - :(Union{UnitUpperTriangular,UnitLowerTriangular}), :SymTridiagonal, :Bidiagonal, |
39 | | - :(LinearAlgebra.HermOrSym), :(LinearAlgebra.AdjOrTrans{<:Any,<:Bidiagonal})) |
| 37 | +for T in (:AbstractMatrix, :(LinearAlgebra.Diagonal), |
| 38 | + :(Union{LinearAlgebra.UpperTriangular,LinearAlgebra.LowerTriangular}), |
| 39 | + :(Union{LinearAlgebra.UnitUpperTriangular,LinearAlgebra.UnitLowerTriangular}), |
| 40 | + :(LinearAlgebra.SymTridiagonal), :(LinearAlgebra.Bidiagonal), :(LinearAlgebra.HermOrSym), |
| 41 | + :(LinearAlgebra.AdjOrTrans{<:Any,<:LinearAlgebra.Bidiagonal})) # NOTE: these are internal functions |
40 | 42 | @eval begin |
41 | 43 | \(M1::IntervalMatrix, M2::$T) = IntervalMatrix(M1.mat \ M2) |
42 | 44 | \(M1::$T, M2::IntervalMatrix) = IntervalMatrix(M1 \ M2.mat) |
43 | 45 | end |
44 | 46 | end |
45 | 47 | @static if VERSION >= v"1.3" |
46 | | - for T in [:(Union{LinearAlgebra.Adjoint{T, |
47 | | - S} where {T, |
48 | | - S<:(LinearAlgebra.UpperHessenberg{T, |
49 | | - S} where {S<:AbstractMatrix{T}})}, |
50 | | - LinearAlgebra.Transpose{T, |
51 | | - S} where {T, |
52 | | - S<:(LinearAlgebra.UpperHessenberg{T, |
53 | | - S} where {S<:AbstractMatrix{T}})}, |
54 | | - LinearAlgebra.UpperHessenberg})] |
| 48 | + for T in [:(LinearAlgebra.Adjoint{T, |
| 49 | + S} where {T, |
| 50 | + S<:(LinearAlgebra.UpperHessenberg{T, |
| 51 | + S} where {S<:AbstractMatrix{T}})}), |
| 52 | + :(LinearAlgebra.Transpose{T, |
| 53 | + S} where {T, |
| 54 | + S<:(LinearAlgebra.UpperHessenberg{T, |
| 55 | + S} where {S<:AbstractMatrix{T}})}), |
| 56 | + :(LinearAlgebra.UpperHessenberg)] |
55 | 57 | @eval begin |
56 | 58 | \(M1::IntervalMatrix, M2::$T) = IntervalMatrix(M1.mat \ M2) |
57 | 59 | \(M1::$T, M2::IntervalMatrix) = IntervalMatrix(M1 \ M2.mat) |
|
0 commit comments