Skip to content

Commit 2842691

Browse files
authored
Move imports to the main file (#655)
1 parent 49429cd commit 2842691

File tree

8 files changed

+12
-32
lines changed

8 files changed

+12
-32
lines changed

src/ApproxFunBase.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,21 @@ import Base: values, convert, getindex, setindex!, *, +, -, ==, <, <=, >, |, !,
4747
asec, cot, acot, sinh, csch, asinh, acsch,
4848
sech, acosh, asech, tanh, coth, atanh, acoth,
4949
sinc, cosc, log1p, log, expm1, tan,
50-
max, min, cbrt, atan, acos, asin
50+
max, min, cbrt, atan, acos, asin, chop,
51+
axes, IndexStyle, IndexLinear, typed_hcat, parent
5152

5253
import Base.Broadcast: BroadcastStyle, Broadcasted, AbstractArrayStyle,
5354
broadcastable, DefaultArrayStyle, broadcasted
5455

55-
import LinearAlgebra: BlasInt, BlasFloat, norm, ldiv!, mul!, det, cross,
56+
import LinearAlgebra: BlasFloat, norm, ldiv!, mul!, det, cross,
5657
qr, qr!, rank, isdiag, istril, istriu, issymmetric,
5758
Tridiagonal, diagm, diagm_container, factorize,
5859
nullspace, Hermitian, Symmetric, adjoint, transpose, char_uplo,
59-
axpy!, eigvals
60+
axpy!, eigvals, LU, checknonsingular, chkstride1
61+
62+
import LinearAlgebra.LAPACK.chklapackerror
63+
64+
import LinearAlgebra.BLAS: @blasfunc, libblas, liblapack, BlasInt
6065

6166
import SparseArrays: blockdiag
6267

src/Fun.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export Fun, evaluate, values, points, extrapolate, setdomain
22
export coefficients, ncoefficients, coefficient
33
export integrate, differentiate, domain, space, linesum, linenorm
4+
export bilinearform, linebilinearform, innerproduct, lineinnerproduct
45

56
include("Domain.jl")
67
include("Space.jl")
@@ -637,8 +638,6 @@ inv(f::Fun) = 1/f
637638

638639
# Integrals over two Funs, which are fast with the orthogonal weight.
639640

640-
export bilinearform, linebilinearform, innerproduct, lineinnerproduct
641-
642641
# Having fallbacks allow for the fast implementations.
643642

644643
defaultbilinearform(f::Fun,g::Fun)=sum(f*g)

src/LinearAlgebra/blas.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import LinearAlgebra.BLAS: @blasfunc, libblas, liblapack
2-
31
# Level 2
42
## mv
53
### gemv

src/LinearAlgebra/helper.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import Base: chop
2-
31
# BLAS/linear algebra overrides
42

53
@inline dot(x...) = LinearAlgebra.dot(x...)

src/LinearAlgebra/hesseneigs.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
2-
3-
4-
import LinearAlgebra.BLAS: BlasInt, @blasfunc
5-
6-
71
for (hseqr,elty) in ((:zhseqr_,:ComplexF64),)
82
@eval function hesseneigvals(M::Matrix{$elty})
93
if isempty(M)

src/LinearAlgebra/rowvector.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# This file is based on rowvector.jl in Julia. License is MIT: https://julialang.org/license
22
# The motivation for this file is to allow RowVector which doesn't transpose the entries
33

4-
import Base: convert, similar, length, size, axes, IndexStyle,
5-
IndexLinear, @propagate_inbounds, getindex, setindex!,
6-
broadcast, hcat, typed_hcat, map, parent
7-
84
"""
95
RowVector(vector)
106

src/Multivariate/Multivariate.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
export grad, lap, curl
2+
13
abstract type MultivariateFun{T,N} <: Function end
24
const BivariateFun{T} = MultivariateFun{T,2}
35

4-
export grad, lap, curl
5-
66
#implements coefficients/values/evaluate
77
space(f::MultivariateFun{T,N}) where {T,N}=mapreduce(k->space(f,k),,1:N)
88
domain(f::MultivariateFun{T,N}) where {T,N}=mapreduce(k->domain(f,k),×,1:N)

src/Spaces/QuotientSpace.jl

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import LinearAlgebra: LU, checknonsingular
2-
3-
export QuotientSpace
1+
export QuotientSpace, PathologicalQuotientSpace
42

53
struct QuotientSpace{S,O,D,R,LUT<:LU{R}} <: Space{D,R}
64
space::S
@@ -110,14 +108,6 @@ function mutable_lu!(F::LU{T}, ::Val{Pivot} = Val(true);
110108
return F
111109
end
112110

113-
114-
115-
import LinearAlgebra.BLAS.@blasfunc
116-
import LinearAlgebra: chkstride1, BlasInt
117-
import LinearAlgebra.LAPACK.chklapackerror
118-
119-
export PathologicalQuotientSpace
120-
121111
struct PathologicalQuotientSpace{S,O<:Operator,DD,T,RT} <: Space{DD,T}
122112
space::S
123113
bcs::O

0 commit comments

Comments
 (0)