Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect usings and avoid using packages #250

Merged
merged 1 commit into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/IntervalMatrices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 0 additions & 6 deletions src/matrix.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import Base: similar, ∈, ⊆, ∩, ∪, real, imag
import Random: rand
import IntervalArithmetic: inf, sup, mid, diam, radius, hull

"""
AbstractIntervalMatrix{IT} <: AbstractMatrix{IT}

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions src/operations/arithmetic.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Base: +, -, *, /, \

# =========================
# Addition operations
# =========================
Expand Down
2 changes: 0 additions & 2 deletions src/operations/power.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Base: copy, get

"""
IntervalMatrixPower{T}

Expand Down
Loading