Skip to content

Commit aba5151

Browse files
committed
setdiff for point
1 parent 4d97b15 commit aba5151

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunOrthogonalPolynomials"
22
uuid = "b70543e2-c0d9-56b8-a290-0d4d6d4de211"
3-
version = "0.1.0"
3+
version = "0.1.1"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
@@ -32,7 +32,7 @@ ToeplitzMatrices = "c751599d-da0a-543b-9d20-d0a503d91d24"
3232
AbstractFFTs = "≥ 0.3.1"
3333
ApproxFunBase = "0.1"
3434
BandedMatrices = "0.9.0"
35-
BlockArrays = "0.8.0"
35+
BlockArrays = "0.8, 0.9"
3636
BlockBandedMatrices = "0.4.0"
3737
Calculus = "≥ 0.1.15"
3838
DSP = "≥ 0.5.1"

src/Domains/Domains.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ Base.setdiff(d::Union{AbstractInterval,Segment,Ray,Line}, ptsin::WrappedDomain{<
1717
affine_setdiff(d, ptsin)
1818

1919
Base.setdiff(d::Union{AbstractInterval,Segment,Ray,Line}, ptsin::AbstractVector{<:Number}) =
20-
ApproxFunBase._affine_setdiff(d, ptsin)
20+
ApproxFunBase._affine_setdiff(d, ptsin)
21+
22+
Base.setdiff(d::Union{AbstractInterval,Segment,Ray,Line}, ptsin::Number) =
23+
ApproxFunBase._affine_setdiff(d, ptsin)

test/SpacesTest.jl

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using ApproxFunOrthogonalPolynomials, SpecialFunctions, LinearAlgebra, Test
2-
import DomainSets
3-
import DomainSets: UnionDomain
4-
import ApproxFunBase: space, SpaceOperator,
5-
testspace, testbandedoperator, testraggedbelowoperator, testcalculus, testtransforms,
6-
testfunctional
2+
import DomainSets
3+
import DomainSets: UnionDomain
4+
import ApproxFunBase: space, SpaceOperator,
5+
testspace, testbandedoperator, testraggedbelowoperator, testcalculus, testtransforms,
6+
testfunctional
77

88
@testset "Spaces" begin
99
@testset "ChebyshevDirichlet" begin
@@ -294,4 +294,11 @@ using ApproxFunOrthogonalPolynomials, SpecialFunctions, LinearAlgebra, Test
294294
@test g(0.1) 0.2
295295
@test g(-0.2) 0.0
296296
end
297+
298+
@testset "remove point" begin
299+
@test (-1..1) \ 0 == UnionDomain(-1..0, 0..1)
300+
f = Fun(identity, (-1..1) \ 0)
301+
@test f(0.1) 0.1
302+
@test f(-0.1) -0.1
303+
end
297304
end

0 commit comments

Comments
 (0)