Skip to content

Commit 4a56d71

Browse files
authored
Merge pull request #2 from JuliaApproximation/dl/domainsets002_2
DomainSets 0.0.2 support
2 parents 410a35e + 13b3dce commit 4a56d71

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Project.toml

Lines changed: 2 additions & 2 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.0.4"
3+
version = "0.0.5"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
@@ -35,7 +35,7 @@ BlockArrays = "0.8.0"
3535
BlockBandedMatrices = "0.4.0"
3636
Calculus = "≥ 0.1.15"
3737
DSP = "≥ 0.5.1"
38-
DomainSets = "0.0.1"
38+
DomainSets = "0.0.2"
3939
DualNumbers = "0.6.2"
4040
FFTW = "≥ 0.2.4"
4141
FastGaussQuadrature = "≥ 0.3.2"

src/ApproxFunBase.jl

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

99
import DomainSets: Domain, indomain, UnionDomain, ProductDomain, FullSpace, Point, elements, DifferenceDomain,
1010
Interval, ChebyshevInterval, boundary, ∂, rightendpoint, leftendpoint,
11-
dimension
11+
dimension, WrappedDomain
1212

1313

1414

src/Domains/Domains.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ end
4040

4141
include("multivariate.jl")
4242

43-
function affine_setdiff(d::Domain, ptsin::UnionDomain)
44-
pts=Number.(elements(ptsin))
43+
affine_setdiff(d::Domain, ptsin::UnionDomain) =
44+
_affine_setdiff(d, Number.(elements(ptsin)))
45+
46+
affine_setdiff(d::Domain, ptsin::WrappedDomain{<:AbstractVector}) =
47+
_affine_setdiff(d, ptsin.domain)
48+
49+
function _affine_setdiff(d::Domain, pts)
4550
isempty(pts) && return d
4651
tol=sqrt(eps(arclength(d)))
4752
da=leftendpoint(d)

0 commit comments

Comments
 (0)