Skip to content

Commit 561e1c3

Browse files
authored
DomainSets v0.5 (#28)
* DomainSets v0.5 * Update PeriodicLine.jl
1 parent 68658d8 commit 561e1c3

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunFourier"
22
uuid = "59844689-9c9d-51bf-9583-5b794ec66d30"
3-
version = "0.2.9"
3+
version = "0.2.10"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
@@ -16,10 +16,10 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1616
[compat]
1717
AbstractFFTs = "0.5, 1"
1818
ApproxFunBase = "0.3, 0.4"
19-
DomainSets = "0.3, 0.4"
19+
DomainSets = "0.3, 0.4, 0.5"
2020
FFTW = "1.1"
2121
FastTransforms = "0.10, 0.11, 0.12"
22-
InfiniteArrays = "0.5, 0.6, 0.7, 0.8, 0.9, 0.10"
22+
InfiniteArrays = "0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11"
2323
IntervalSets = "0.5"
2424
Reexport = "0.2, 1"
2525
SpecialFunctions = "0.8, 0.9, 0.10, 1.0"

src/Domains/PeriodicLine.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ PeriodicLine(c,a) = PeriodicLine{a/π,eltype(c)}(c,1.)
2727
PeriodicLine() = PeriodicLine{false,Float64}(0.,1.)
2828
PeriodicLine(b::Bool) = PeriodicLine{b,Float64}()
2929

30+
==(a::PeriodicLine, b::PeriodicLine) = a.center == b.center && a.L == b.L
31+
3032
isambiguous(d::PeriodicLine) = isnan(d.center) && isnan(d.angle)
3133
convert(::Type{Domain{T}},d::PeriodicLine{a}) where {a,T<:Number} = PeriodicLine{a,T}(d.center, d.L)
3234
convert(::Type{PeriodicLine{T,TT}},::AnyDomain) where {T<:Number,TT} = PeriodicLine{T,TT}(NaN,NaN)

src/Domains/PeriodicSegment.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ issubset(a::IntervalOrSegment, b::PeriodicSegment) = PeriodicSegment(endpoints(a
110110

111111

112112

113-
boundary(d::RectDomain{<:Any,<:IntervalOrSegment,<:PeriodicSegment}) =
113+
boundary(d::VcatDomain{2,<:Any,(1,1),<:Tuple{<:IntervalOrSegment,<:PeriodicSegment}}) =
114114
UnionDomain((PeriodicSegment(Vec(rightendpoint(factor(d,1)),leftendpoint(factor(d,2))),Vec(rightendpoint(factor(d,1)),rightendpoint(factor(d,2)))),
115115
PeriodicSegment(Vec(leftendpoint(factor(d,1)),rightendpoint(factor(d,2))),Vec(leftendpoint(factor(d,1)),leftendpoint(factor(d,2))))))
116-
boundary(d::RectDomain{<:Any,<:PeriodicSegment,<:IntervalOrSegment}) =
116+
boundary(d::VcatDomain{2,<:Any,(1,1),<:Tuple{<:PeriodicSegment,<:IntervalOrSegment}}) =
117117
UnionDomain((PeriodicSegment(Vec(leftendpoint(factor(d,1)),leftendpoint(factor(d,2))),Vec(rightendpoint(factor(d,1)),leftendpoint(factor(d,2)))),
118118
PeriodicSegment(Vec(rightendpoint(factor(d,1)),rightendpoint(factor(d,2))),Vec(leftendpoint(factor(d,1)),rightendpoint(factor(d,2))))))
119-
boundary(d::RectDomain{<:Any,<:PeriodicSegment,<:PeriodicSegment}) = EmptyDomain()
119+
boundary(d::VcatDomain{2,<:Any,(1,1),<:Tuple{<:PeriodicSegment,<:PeriodicSegment}}) = EmptyDomain()
120120

121121
union_rule(A::SumSpace{<:Any,<:PeriodicSegment}, B::Space{<:IntervalOrSegment}) =
122122
union(Space(Interval(domain(A))), B)

0 commit comments

Comments
 (0)