Skip to content

Commit e6b6bad

Browse files
authored
Cleanup imports in SparseArrays (#42894)
1 parent f8f8b54 commit e6b6bad

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

src/SparseArrays.jl

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,21 @@ Support for sparse arrays. Provides `AbstractSparseArray` and subtypes.
66
module SparseArrays
77

88
using Base: ReshapedArray, promote_op, setindex_shape_check, to_shape, tail,
9-
require_one_based_indexing
9+
require_one_based_indexing, promote_eltype
1010
using Base.Sort: Forward
1111
using LinearAlgebra
12-
using LinearAlgebra: AdjOrTrans
12+
using LinearAlgebra: AdjOrTrans, matprod
1313

1414
import Base: +, -, *, \, /, &, |, xor, ==, zero
1515
import LinearAlgebra: mul!, ldiv!, rdiv!, cholesky, adjoint!, diag, eigen, dot,
1616
issymmetric, istril, istriu, lu, tr, transpose!, tril!, triu!, isbanded,
17-
cond, diagm, factorize, ishermitian, norm, opnorm, lmul!, rmul!, tril, triu, matprod
17+
cond, diagm, factorize, ishermitian, norm, opnorm, lmul!, rmul!, tril, triu
1818

19-
import Base: acos, acosd, acot, acotd, acsch, asech, asin, asind, asinh,
20-
atan, atand, atanh, broadcast!, conj!, cos, cosc, cosd, cosh, cospi, cot,
21-
cotd, coth, count, csc, cscd, csch,
22-
exp10, exp2, findprev, findnext, floor, hash, argmin, inv,
23-
log10, log2, sec, secd, sech, show,
24-
sin, sinc, sind, sinh, sinpi, dropdims, sum, summary, tan,
25-
tand, tanh, trunc, abs, abs2,
26-
broadcast, ceil, complex, conj, convert, copy, copyto!, adjoint,
27-
exp, expm1, findall, findmax, findmin, float, getindex,
28-
vcat, hcat, hvcat, cat, imag, argmax, kron, kron!, length, log, log1p, max, min,
29-
maximum, minimum, one, promote_eltype, real, reshape, rot180,
30-
rotl90, rotr90, round, setindex!, similar, size, transpose,
31-
vec, permute!, map, map!, Array, diff, circshift!, circshift
19+
import Base: adjoint, argmin, argmax, Array, broadcast, circshift!, complex, Complex,
20+
conj, conj!, convert, copy, copy!, copyto!, count, diff, findall, findmax, findmin,
21+
float, getindex, imag, inv, kron, kron!, length, map, maximum, minimum, permute!, real,
22+
rot180, rotl90, rotr90, setindex!, show, similar, size, sum, transpose,
23+
vcat, hcat, hvcat, cat, vec
3224

3325
using Random: default_rng, AbstractRNG, randsubseq, randsubseq!
3426

0 commit comments

Comments
 (0)