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

concrete list of exports #875

Open
wants to merge 1 commit into
base: release-1.0
Choose a base branch
from
Open
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
18 changes: 6 additions & 12 deletions src/ApproxFun.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ using Base, Reexport,

import Calculus

@reexport using ApproxFunBase
@reexport using ApproxFunFourier
@reexport using ApproxFunOrthogonalPolynomials
@reexport using ApproxFunSingularities
using ApproxFunBase
using ApproxFunFourier
using ApproxFunOrthogonalPolynomials
using ApproxFunSingularities

include("exports.jl")

import ApproxFunBase: Fun, UnsetSpace, VFun, UnivariateSpace, SumSpace, Space,
HeavisideSpace, PointSpace, IntervalOrSegment, ArraySpace,
Expand All @@ -24,8 +26,6 @@ import ApproxFunBase: Fun, UnsetSpace, VFun, UnivariateSpace, SumSpace, Space,
AbstractProductSpace, MultivariateFun, BivariateSpace,
@calculus_operator, slnorm, sample, chop!, 𝒟, ∫, ⨜, ⨍

export ∫, ⨜, ⨍, 𝒟

import ApproxFunOrthogonalPolynomials: order

import BandedMatrices: bandwidths
Expand Down Expand Up @@ -73,12 +73,6 @@ Curve(f::Fun{<:Space{<:PeriodicDomain}}) = PeriodicCurve(f)
#TODO: Make type stable
Curve(f::Fun{<:Space{<:ChebyshevInterval}}) = IntervalCurve(f)

export Curve

##Testing
export bisectioninv


## Further extra features

include("Extras/Extras.jl")
Expand Down
2 changes: 0 additions & 2 deletions src/Extras/autodifferentiation.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export newton, linop

struct DualFun{F,T}
f::F
J::T
Expand Down
5 changes: 0 additions & 5 deletions src/Extras/fractional.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
#
# defined as
####



export LeftIntegral,LeftDerivative, RightDerivative, RightIntegral

@calculus_operator LeftIntegral
@calculus_operator LeftDerivative

Expand Down
3 changes: 0 additions & 3 deletions src/Extras/lanczos.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
export lanczos


# this finds the OPs and recurrence for a
function lanczos(w,N)
x = Fun(identity,space(w))
Expand Down
4 changes: 0 additions & 4 deletions src/Extras/poetry.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#####
# This includes short-hands that are convenient but perhaps confusing
#####


export chebyshevt, chebyshevu, legendre, ChebyshevWeight, 𝕀, 𝕌

## Chebyshev & Legendre polynomials

chebyshevt(n::Int,d::IntervalOrSegment{T}) where {T<:Number} = Fun(Chebyshev(d),[zeros(T,n);one(T)])
Expand Down
4 changes: 0 additions & 4 deletions src/Extras/sample.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@

export samplecdf,normalizedcumsum!


##bisection inverse


Expand Down
122 changes: 122 additions & 0 deletions src/exports.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# ApproxFunBase
export Fun
export ProductFun
export LowRankFun
export Space
export Operator
export coefficients
export coefficient
export ncoefficients
export points
export domainspace
export rangespace
export boundary, ∂
export transform
export transform!
export itransform
export itransform!
export differentiate
export integrate
export Derivative
export Integral
export DefiniteIntegral
export DefiniteLineIntegral
export Dirichlet
export Neumann
export Evaluation
export ivp
export bvp
export Multiplication
export Conversion
export sample
export ∫, ⨜, ⨍, 𝒟
export TensorSpace
export ⊗, ⊕
export ProductSpace
export Laplacian
export Volterra
export cache
export PartialInverseOperator
export →
export PiecewiseSegment
export Segment
export ChebyshevInterval
export Interval
export ..
export components
export space
export domain
export ConstantSpace
export QuotientSpace
export roots
export setdomain
export extrapolate
export periodic
export ldirichlet
export rdirichlet
export lneumann
export rneumann
export ApproxFunBase

# ApproxFunOrthogonalPolynomials
export Chebyshev
export NormalizedChebyshev
export Ultraspherical
export NormalizedUltraspherical
export Jacobi
export NormalizedJacobi
export Legendre
export NormalizedLegendre
export Hermite
export NormalizedHermite
export Laguerre
export NormalizedLaguerre
export GaussWeight
export LaguerreWeight
export WeightedLaguerre
export ContinuousSpace
export ChebyshevDirichlet
export Bernstein
export Bézier
export PolynomialSpace
export NormalizedPolynomialSpace
export Arc
export IntervalCurve
export Line
export Ray
export ApproxFunOrthogonalPolynomials

# ApproxFunFourier
export Fourier
export Laurent
export Taylor
export Hardy
export CosSpace
export SinSpace
export Circle
export PeriodicDomain
export PeriodicSegment
export PeriodicCurve
export PeriodicLine
export LaurentDirichlet
export ApproxFunFourier

# ApproxFunSingularities
export JacobiWeight
export WeightedJacobi
export ExpWeight
export LogWeight
export ApproxFunSingularities

# ApproxFun
export Curve
export LeftIntegral
export LeftDerivative
export RightDerivative
export RightIntegral
export samplecdf
export normalizedcumsum!
export newton
export linop

export bisectioninv