Skip to content

Commit 10d1b7f

Browse files
authored
Support DomainSets v0.3 (#41)
* Fix bug in Chebyshev * v0.3.4 * Update Project.toml
1 parent 687e854 commit 10d1b7f

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.3.3"
3+
version = "0.3.4"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
@@ -33,13 +33,13 @@ BlockArrays = "0.11, 0.12"
3333
BlockBandedMatrices = "0.7, 0.8"
3434
Calculus = "0.5"
3535
DSP = "0.6"
36-
DomainSets = "0.1, 0.2, 0.3"
36+
DomainSets = "0.3"
3737
DualNumbers = "0.6.2"
3838
FFTW = "0.3, 1"
3939
FastGaussQuadrature = "0.4"
4040
FillArrays = "0.8"
4141
InfiniteArrays = "0.4, 0.5, 0.6, 0.7"
42-
IntervalSets = "0.3.1, 0.4"
42+
IntervalSets = "0.5"
4343
LazyArrays = "0.14, 0.15, 0.16"
4444
LowRankApprox = "0.2, 0.3, 0.4"
4545
SpecialFunctions = "0.8, 0.9, 0.10"

src/ApproxFunBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import StaticArrays, Calculus
66

77
import DomainSets: Domain, indomain, UnionDomain, ProductDomain, FullSpace, Point, elements, DifferenceDomain,
88
Interval, ChebyshevInterval, boundary, ∂, rightendpoint, leftendpoint,
9-
dimension, WrappedDomain
9+
dimension, WrappedDomain, VcatDomain
1010

1111

1212

src/Domain.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ struct EmptyDomain <: Domain{Nothing} end
2020

2121
isambiguous(::AnyDomain) = true
2222
dimension(::AnyDomain) = 1
23+
dimension(::EmptyDomain) = 0
2324

2425
complexlength(::AnyDomain) = NaN
2526
arclength(::AnyDomain) = NaN

src/Domains/multivariate.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ include("ProductDomain.jl")
33

44
## boundary
55

6-
boundary(d::ProductDomain{Tuple{A,B}}) where {A<:IntervalOrSegment,B<:IntervalOrSegment} =
6+
const RectDomain{T,A<:IntervalOrSegment,B<:IntervalOrSegment} = VcatDomain{2,T,(1,1),Tuple{A,B}}
7+
8+
boundary(d::RectDomain) =
79
PiecewiseSegment([Vec(leftendpoint(factor(d,1)),leftendpoint(factor(d,2))),
810
Vec(rightendpoint(factor(d,1)),leftendpoint(factor(d,2))),
911
Vec(rightendpoint(factor(d,1)),rightendpoint(factor(d,2))),

0 commit comments

Comments
 (0)