Skip to content

Commit 08ab5c4

Browse files
committed
restore setdiff
1 parent 4737f65 commit 08ab5c4

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Project.toml

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

45
[deps]
56
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
@@ -34,7 +35,7 @@ BlockArrays = "0.8.0"
3435
BlockBandedMatrices = "0.4.0"
3536
Calculus = "≥ 0.1.15"
3637
DSP = "≥ 0.5.1"
37-
DomainSets = "0.0.1, 0.0.2"
38+
DomainSets = "0.0.2"
3839
DualNumbers = "0.6.2"
3940
FFTW = "≥ 0.2.4"
4041
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)