|
1 | 1 | module ApproxFunOrthogonalPolynomials
|
2 |
| -using Base, LinearAlgebra, Reexport, BandedMatrices, BlockBandedMatrices, AbstractFFTs, FFTW, BlockArrays, FillArrays, FastTransforms, IntervalSets, |
| 2 | +using Base, LinearAlgebra, Reexport, BandedMatrices, BlockBandedMatrices, |
| 3 | + BlockArrays, FillArrays, FastTransforms, IntervalSets, |
3 | 4 | DomainSets, Statistics, SpecialFunctions, FastGaussQuadrature
|
4 | 5 |
|
5 | 6 | @reexport using ApproxFunBase
|
6 | 7 |
|
7 |
| -import AbstractFFTs: Plan, fft, ifft |
8 |
| -import FFTW: plan_r2r!, fftwNumber, REDFT10, REDFT01, REDFT00, RODFT00, R2HC, HC2R, |
9 |
| - r2r!, r2r, plan_fft, plan_ifft, plan_ifft!, plan_fft! |
10 |
| - |
11 |
| -import ApproxFunBase: normalize!, flipsign, FiniteRange, Fun, MatrixFun, UnsetSpace, VFun, RowVector, |
12 |
| - UnivariateSpace, AmbiguousSpace, SumSpace, SubSpace, WeightSpace, NoSpace, Space, |
13 |
| - HeavisideSpace, PointSpace, |
14 |
| - IntervalOrSegment, RaggedMatrix, AlmostBandedMatrix, |
15 |
| - AnyDomain, ZeroSpace, ArraySpace, TrivialInterlacer, BlockInterlacer, |
| 8 | +import ApproxFunBase: Fun, SubSpace, WeightSpace, NoSpace, HeavisideSpace, |
| 9 | + IntervalOrSegment, AnyDomain, ArraySpace, |
16 | 10 | AbstractTransformPlan, TransformPlan, ITransformPlan,
|
17 |
| - ConcreteConversion, ConcreteMultiplication, ConcreteDerivative, ConcreteIntegral, |
18 |
| - ConcreteVolterra, Volterra, VolterraWrapper, |
19 |
| - MultiplicationWrapper, ConversionWrapper, DerivativeWrapper, Evaluation, EvaluationWrapper, |
20 |
| - Conversion, defaultConversion, defaultcoefficients, default_Fun, Multiplication, Derivative, Integral, bandwidths, |
21 |
| - ConcreteEvaluation, ConcreteDefiniteLineIntegral, ConcreteDefiniteIntegral, ConcreteIntegral, |
22 |
| - DefiniteLineIntegral, DefiniteIntegral, ConcreteDefiniteIntegral, ConcreteDefiniteLineIntegral, IntegralWrapper, |
23 |
| - ReverseOrientation, ReverseOrientationWrapper, ReverseWrapper, Reverse, NegateEven, Dirichlet, ConcreteDirichlet, |
| 11 | + ConcreteConversion, ConcreteMultiplication, ConcreteDerivative, |
| 12 | + ConcreteDefiniteIntegral, ConcreteDefiniteLineIntegral, |
| 13 | + ConcreteVolterra, Volterra, Evaluation, EvaluationWrapper, |
| 14 | + MultiplicationWrapper, ConversionWrapper, DerivativeWrapper, |
| 15 | + Conversion, defaultcoefficients, default_Fun, Multiplication, |
| 16 | + Derivative, bandwidths, ConcreteEvaluation, ConcreteIntegral, |
| 17 | + DefiniteLineIntegral, DefiniteIntegral, IntegralWrapper, |
| 18 | + ReverseOrientation, ReverseOrientationWrapper, ReverseWrapper, |
| 19 | + Reverse, NegateEven, Dirichlet, ConcreteDirichlet, |
24 | 20 | TridiagonalOperator, SubOperator, Space, @containsconstants, spacescompatible,
|
25 |
| - hasfasttransform, canonicalspace, domain, setdomain, prectype, domainscompatible, |
26 |
| - plan_transform, plan_itransform, plan_transform!, plan_itransform!, transform, itransform, hasfasttransform, |
| 21 | + canonicalspace, domain, setdomain, prectype, domainscompatible, |
| 22 | + plan_transform, plan_itransform, plan_transform!, plan_itransform!, |
| 23 | + transform, itransform, hasfasttransform, |
27 | 24 | CanonicalTransformPlan, ICanonicalTransformPlan,
|
28 |
| - Integral, |
29 |
| - domainspace, rangespace, boundary, |
30 |
| - union_rule, conversion_rule, maxspace_rule, conversion_type, maxspace, hasconversion, points, |
31 |
| - rdirichlet, ldirichlet, lneumann, rneumann, ivp, bvp, |
| 25 | + Integral, domainspace, rangespace, boundary, |
| 26 | + maxspace, hasconversion, points, |
| 27 | + union_rule, conversion_rule, maxspace_rule, conversion_type, |
32 | 28 | linesum, differentiate, integrate, linebilinearform, bilinearform,
|
33 |
| - UnsetNumber, coefficienttimes, subspace_coefficients, sumspacecoefficients, specialfunctionnormalizationpoint, |
34 |
| - Segment, IntervalOrSegmentDomain, PiecewiseSegment, isambiguous, Vec, eps, isperiodic, |
35 |
| - arclength, complexlength, |
36 |
| - invfromcanonicalD, fromcanonical, tocanonical, fromcanonicalD, tocanonicalD, canonicaldomain, setcanonicaldomain, mappoint, |
37 |
| - reverseorientation, checkpoints, evaluate, extrapolate, mul_coefficients, coefficients, isconvertible, |
38 |
| - clenshaw, ClenshawPlan, sineshaw, |
39 |
| - toeplitz_getindex, toeplitz_axpy!, sym_toeplitz_axpy!, hankel_axpy!, ToeplitzOperator, SymToeplitzOperator, hankel_getindex, |
40 |
| - SpaceOperator, ZeroOperator, InterlaceOperator, |
41 |
| - interlace!, reverseeven!, negateeven!, cfstype, pad!, alternatesign!, mobius, |
42 |
| - extremal_args, hesseneigvals, chebyshev_clenshaw, recA, recB, recC, roots,splitatroots, |
43 |
| - chebmult_getindex, intpow, alternatingsum, |
44 |
| - domaintype, diagindshift, rangetype, weight, isapproxinteger, default_Dirichlet, scal!, dotu, |
45 |
| - components, promoterangespace, promotedomainspace, |
46 |
| - block, blockstart, blockstop, blocklengths, isblockbanded, pointscompatible, affine_setdiff, complexroots, |
| 29 | + Segment, IntervalOrSegmentDomain, PiecewiseSegment, isambiguous, |
| 30 | + eps, isperiodic, arclength, complexlength, |
| 31 | + invfromcanonicalD, fromcanonical, tocanonical, fromcanonicalD, |
| 32 | + tocanonicalD, canonicaldomain, setcanonicaldomain, mappoint, |
| 33 | + reverseorientation, checkpoints, evaluate, extrapolate, mul_coefficients, |
| 34 | + coefficients, isconvertible, clenshaw, ClenshawPlan, |
| 35 | + toeplitz_axpy!, sym_toeplitz_axpy!, hankel_axpy!, |
| 36 | + ToeplitzOperator, SymToeplitzOperator, SpaceOperator, cfstype, |
| 37 | + alternatesign!, mobius, chebmult_getindex, intpow, alternatingsum, |
| 38 | + extremal_args, chebyshev_clenshaw, recA, recB, recC, roots, |
| 39 | + diagindshift, rangetype, weight, isapproxinteger, default_Dirichlet, scal!, |
| 40 | + components, promoterangespace, |
| 41 | + block, blockstart, blockstop, blocklengths, isblockbanded, |
| 42 | + pointscompatible, affine_setdiff, complexroots, |
47 | 43 | ℓ⁰, recα, recβ, recγ, ℵ₀, ∞, RectDomain
|
48 | 44 |
|
49 |
| -import DomainSets: Domain, indomain, UnionDomain, ProductDomain, FullSpace, Point, elements, DifferenceDomain, |
50 |
| - Interval, ChebyshevInterval, boundary, ∂, rightendpoint, leftendpoint, |
| 45 | +import DomainSets: Domain, indomain, UnionDomain, FullSpace, Point, |
| 46 | + Interval, ChebyshevInterval, boundary, rightendpoint, leftendpoint, |
51 | 47 | dimension, WrappedDomain
|
52 | 48 |
|
53 |
| -import BandedMatrices: bandrange, bandshift, |
54 |
| - inbands_getindex, inbands_setindex!, bandwidth, AbstractBandedMatrix, |
55 |
| - colstart, colstop, colrange, rowstart, rowstop, rowrange, |
56 |
| - bandwidths, _BandedMatrix, BandedMatrix |
57 |
| - |
58 |
| -import Base: values, convert, getindex, setindex!, *, +, -, ==, <, <=, >, |, !, !=, eltype, iterate, |
59 |
| - >=, /, ^, \, ∪, transpose, size, tail, broadcast, broadcast!, copyto!, copy, to_index, (:), |
60 |
| - similar, map, vcat, hcat, hvcat, show, summary, stride, sum, cumsum, sign, imag, conj, inv, |
61 |
| - complex, reverse, exp, sqrt, abs, abs2, sign, issubset, values, in, first, last, rand, intersect, setdiff, |
62 |
| - isless, union, angle, join, isnan, isapprox, isempty, sort, merge, promote_rule, |
63 |
| - minimum, maximum, extrema, argmax, argmin, findmax, findmin, isfinite, |
64 |
| - zeros, zero, one, promote_rule, repeat, length, resize!, isinf, |
65 |
| - getproperty, findfirst, unsafe_getindex, fld, cld, div, real, imag, |
66 |
| - @_inline_meta, eachindex, firstindex, lastindex, keys, isreal, OneTo, |
67 |
| - Array, Vector, Matrix, view, ones, @propagate_inbounds, print_array, |
68 |
| - split |
69 |
| - |
70 |
| -import LinearAlgebra: BlasInt, BlasFloat, norm, ldiv!, mul!, det, eigvals, dot, cross, |
71 |
| - qr, qr!, rank, isdiag, istril, istriu, issymmetric, ishermitian, |
72 |
| - Tridiagonal, diagm, diagm_container, factorize, nullspace, |
73 |
| - Hermitian, Symmetric, adjoint, transpose, char_uplo |
74 |
| - |
75 |
| -import FastTransforms: ChebyshevTransformPlan, IChebyshevTransformPlan, plan_chebyshevtransform, |
76 |
| - plan_chebyshevtransform!, plan_ichebyshevtransform, plan_ichebyshevtransform!, |
| 49 | +import BandedMatrices: bandshift, bandwidth, colstop, bandwidths, BandedMatrix |
| 50 | + |
| 51 | +import Base: convert, getindex, *, +, -, ==, <, <=, >, |, !, !=, eltype, |
| 52 | + >=, /, ^, \, ∪, transpose, size, copyto!, copy, |
| 53 | + map, vcat, hcat, show, stride, sum, cumsum, conj, inv, |
| 54 | + complex, reverse, exp, sqrt, abs, sign, issubset, values, |
| 55 | + first, last, rand, intersect, setdiff, |
| 56 | + isless, union, angle, isnan, isapprox, isempty, sort, merge, |
| 57 | + minimum, maximum, extrema, argmax, argmin, |
| 58 | + zeros, zero, one, promote_rule, length, resize!, isinf, |
| 59 | + getproperty, cld, div, real, imag, |
| 60 | + max, min, log, acosh, tanh, atanh, |
| 61 | + atan, sinh, asinh, |
| 62 | + tan, tanh, asin, sec, acos, |
| 63 | + sin, cos, sinh, cosh, |
| 64 | + asinh, acosh, atanh, |
| 65 | + Array, Vector, Matrix, view, ones, split |
| 66 | + |
| 67 | +import LinearAlgebra: norm, mul!, det, eigvals, qr, Tridiagonal, transpose |
| 68 | + |
| 69 | +import FastTransforms: plan_chebyshevtransform, plan_chebyshevtransform!, |
| 70 | + plan_ichebyshevtransform, plan_ichebyshevtransform!, |
77 | 71 | pochhammer, lgamma, chebyshevtransform!, ichebyshevtransform!
|
78 | 72 |
|
79 | 73 | import BlockBandedMatrices: blockbandwidths, subblockbandwidths
|
80 | 74 |
|
81 | 75 | # we need to import all special functions to use Calculus.symbolic_derivatives_1arg
|
82 |
| -# we can't do importall Base as we replace some Base definitions |
83 |
| -import SpecialFunctions: sinpi, cospi, airy, besselh, |
84 |
| - asinh, acosh,atanh, erfcx, dawson, erf, erfi, |
85 |
| - sin, cos, sinh, cosh, airyai, airybi, airyaiprime, airybiprime, |
86 |
| - hankelh1, hankelh2, besselj, besselj0, bessely, besseli, besselk, |
87 |
| - besselkx, hankelh1x, hankelh2x, exp2, exp10, log2, log10, |
88 |
| - tan, tanh, csc, asin, acsc, sec, acos, asec, |
89 |
| - cot, atan, acot, sinh, csch, asinh, acsch, |
90 |
| - sech, acosh, asech, tanh, coth, atanh, acoth, |
91 |
| - expm1, log1p, lfact, sinc, cosc, erfinv, erfcinv, beta, lbeta, |
92 |
| - eta, zeta, gamma, polygamma, invdigamma, digamma, trigamma, |
93 |
| - abs, sign, log, expm1, tan, abs2, sqrt, angle, max, min, cbrt, log, |
94 |
| - atan, acos, asin, erfc, inv |
| 76 | +import SpecialFunctions: erfcx, dawson, erf, |
| 77 | + hankelh1, hankelh2, besselj, bessely, besseli, besselk, |
| 78 | + besselkx, hankelh1x, hankelh2x, |
| 79 | + expm1, eta, gamma, erfc |
95 | 80 |
|
96 | 81 | using StaticArrays: SVector
|
97 | 82 |
|
|
0 commit comments