Skip to content

Commit 779a69e

Browse files
committed
reorg
1 parent ff182bd commit 779a69e

11 files changed

+48
-18
lines changed

src/Disk/.DS_Store

6 KB
Binary file not shown.

src/Disk/Disk.jl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using ApproxFun
2+
f = (x,y) -> x*y+cos(y-0.1)+sin(x)+1; ff = Fun((r,θ) -> f(r*cos(θ),r*sin(θ)), (-1..1) × PeriodicSegment());
3+
ApproxFunBase.coefficientmatrix(ff)
4+
5+
struct ChebyshevDisk{V,T} <: Space{Disk{V},T}
6+
domain::Disk{V}
7+
end
8+
9+
ChebyshevDisk(d::Disk{V}) where V = ChebyshevDisk{V,eltype(V)}(d)
10+
ChebyshevDisk() = ChebyshevDisk(Disk())
11+
12+
rectspace(_) = Chebyshev() * Laurent()
13+
14+
15+
function points(S::ChebyshevDisk, N)
16+
pts = points(rectspace(S), N)
17+
fromcanonical.(Ref(S.domain), polar.(pts))
18+
end
19+
20+
plan_transform(S::DuffyTriangle, n::AbstractVector) =
21+
TransformPlan(S, plan_transform(rectspace(S),n), Val{false})
22+
plan_itransform(S::DuffyTriangle, n::AbstractVector) =
23+
ITransformPlan(S, plan_itransform(rectspace(S),n), Val{false})
24+
25+
26+
*(P::TransformPlan{<:Any,<:DuffyTriangle}, v::AbstractArray) = checkerboard(P.plan*v)
27+
*(P::ITransformPlan{<:Any,<:DuffyTriangle}, v::AbstractArray) = P.plan*icheckerboard(v)
28+
29+
evaluate(cfs::AbstractVector, S::DuffyTriangle, x) = evaluate(cfs, rectspace(S), ipolar(tocanonical(S.domain,x)))
30+
File renamed without changes.
File renamed without changes.

src/MultivariateOrthogonalPolynomials.jl

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
__precompile__()
2-
31
module MultivariateOrthogonalPolynomials
42
using Base, RecipesBase, ApproxFun, BandedMatrices, BlockArrays,
53
FastTransforms, FastGaussQuadrature, StaticArrays, FillArrays,
6-
LinearAlgebra, Libdl, SpecialFunctions, LazyArrays
4+
LinearAlgebra, Libdl, SpecialFunctions, LazyArrays, InfiniteArrays
75

86
# package code goes here
97
import Base: values,getindex,setindex!,*, +, -, ==,<,<=,>,
@@ -15,16 +13,16 @@ import BandedMatrices: inbands_getindex, inbands_setindex!
1513
import BlockArrays: blocksizes, BlockSizes, getblock, global2blockindex
1614

1715
# ApproxFun general import
18-
import ApproxFun: BandedMatrix, order, blocksize,
16+
import ApproxFunBase: BandedMatrix, order, blocksize,
1917
linesum,complexlength, BandedBlockBandedMatrix,
20-
real, eps, isapproxinteger, ∞, FiniteRange, DFunction,
18+
real, eps, isapproxinteger, FiniteRange, DFunction,
2119
TransformPlan, ITransformPlan
2220

2321
# Domains import
24-
import ApproxFun: fromcanonical, tocanonical, domainscompatible
22+
import ApproxFunBase: fromcanonical, tocanonical, domainscompatible
2523

2624
# Operator import
27-
import ApproxFun: bandwidths,SpaceOperator, ConversionWrapper, DerivativeWrapper,
25+
import ApproxFunBase: bandwidths,SpaceOperator, ConversionWrapper, DerivativeWrapper,
2826
rangespace, domainspace, InterlaceOperator,
2927
promotedomainspace, CalculusOperator, interlace, Multiplication,
3028
choosedomainspace, SubOperator, ZeroOperator,
@@ -34,7 +32,7 @@ import ApproxFun: bandwidths,SpaceOperator, ConversionWrapper, DerivativeWrap
3432

3533

3634
# Spaces import
37-
import ApproxFun: PolynomialSpace, ConstantSpace, NoSpace, prectype,
35+
import ApproxFunBase: ConstantSpace, NoSpace, prectype,
3836
SumSpace,PiecewiseSpace, ArraySpace, @containsconstants,
3937
UnsetSpace, canonicalspace, canonicaldomain, domain, evaluate,
4038
AnyDomain, plan_transform,plan_itransform,
@@ -51,26 +49,25 @@ import ApproxFun: Domain2d, DirectSumSpace, AbstractProductSpace, factor,
5149
Tensorizer, tensorizer, block, blockstart, blockstop, blocklengths,
5250
domaintensorizer, rangetensorizer, blockrange, Block, BlockRange1
5351

54-
55-
# Jacobi import
56-
import ApproxFun: jacobip, JacobiSD
57-
5852
# Singularities
59-
import ApproxFun: WeightSpace, weight
53+
import ApproxFunBase: WeightSpace, weight
6054

6155
# Vec is for two points
62-
import ApproxFun: Vec
56+
import ApproxFunBase: Vec
57+
58+
# Jacobi import
59+
import ApproxFunOrthogonalPolynomials: jacobip, JacobiSD, PolynomialSpace
6360

6461

6562

66-
include("c_tri2cheb.jl")
63+
include("c_transforms.jl")
6764

68-
include("Triangle.jl")
69-
include("DirichletTriangle.jl")
65+
include("Triangle/Triangle.jl")
66+
include("Disk/Disk.jl")
7067

7168
include("clenshaw.jl")
7269

73-
# include("SphericalHarmonics.jl")
70+
# include("Sphere/SphericalHarmonics.jl")
7471

7572
include("show.jl")
7673
include("plot.jl")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/Triangle.jl renamed to src/Triangle/Triangle.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,3 +1381,6 @@ function *(A_in::Operator, f::Fun{<:JacobiTriangle})
13811381
v = pad(coefficients(f),size(M,2))
13821382
Fun(rangespace(A),M*v)
13831383
end
1384+
1385+
1386+
include("DirichletTriangle.jl")

0 commit comments

Comments
 (0)