diff --git a/src/IntervalMatrices.jl b/src/IntervalMatrices.jl index 93190a4a..45b31dc0 100644 --- a/src/IntervalMatrices.jl +++ b/src/IntervalMatrices.jl @@ -4,15 +4,21 @@ module IntervalMatrices using LinearAlgebra using LinearAlgebra: checksquare -import Random using Random: AbstractRNG, GLOBAL_RNG, seed! +import Random: rand + +import Base: copy, get, + +, -, *, /, \, + size, IndexStyle, getindex, setindex!, + similar, ∈, ⊆, ∩, ∪, real, imag using Reexport @reexport using IntervalArithmetic +import IntervalArithmetic: inf, sup, mid, diam, radius, hull @static if VERSION >= v"1.9" vIA = pkgversion(IntervalArithmetic) else - using PkgVersion + import PkgVersion vIA = PkgVersion.Version(IntervalArithmetic) end if vIA >= v"0.21" diff --git a/src/matrix.jl b/src/matrix.jl index a45dc093..c8e9359d 100644 --- a/src/matrix.jl +++ b/src/matrix.jl @@ -1,7 +1,3 @@ -import Base: similar, ∈, ⊆, ∩, ∪, real, imag -import Random: rand -import IntervalArithmetic: inf, sup, mid, diam, radius, hull - """ AbstractIntervalMatrix{IT} <: AbstractMatrix{IT} @@ -71,8 +67,6 @@ struct IntervalMatrix{T,IT,MT<:AbstractMatrix{IT}} <: AbstractIntervalMatrix{IT} mat::MT end -import Base: size, IndexStyle, getindex, setindex!, copy - IndexStyle(::Type{<:IntervalMatrix}) = IndexLinear() size(M::IntervalMatrix) = size(M.mat) getindex(M::IntervalMatrix, i::Int) = getindex(M.mat, i) diff --git a/src/operations/arithmetic.jl b/src/operations/arithmetic.jl index 32a3b6c4..702cc03a 100644 --- a/src/operations/arithmetic.jl +++ b/src/operations/arithmetic.jl @@ -1,5 +1,3 @@ -import Base: +, -, *, /, \ - # ========================= # Addition operations # ========================= diff --git a/src/operations/power.jl b/src/operations/power.jl index 5392a69a..bd069a40 100644 --- a/src/operations/power.jl +++ b/src/operations/power.jl @@ -1,5 +1,3 @@ -import Base: copy, get - """ IntervalMatrixPower{T}