Skip to content

Commit 8257230

Browse files
authored
Test for InterlaceOperator bandwidth (#298)
1 parent 273337f commit 8257230

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
2727
ApproxFunOrthogonalPolynomialsStaticExt = "Static"
2828

2929
[compat]
30-
ApproxFunBase = "0.8.49, 0.9.4"
30+
ApproxFunBase = "0.8.53, 0.9.8"
3131
ApproxFunBaseTest = "0.1"
3232
Aqua = "0.6"
3333
BandedMatrices = "0.16, 0.17"

test/OperatorTest.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ include("testutils.jl")
4646
@test norm(A\Fun(x.*f,rangespace(A))-(x.*f)) < 100eps()
4747

4848
@test (I : Chebyshev() Chebyshev()) * Fun() Fun()
49+
50+
@testset "QuotientSpace" begin
51+
C = Dirichlet(Chebyshev())
52+
Q = QuotientSpace(Chebyshev(), C)
53+
Z = Conversion(Q, Chebyshev())
54+
@test isapprox((C * Z)[:, 1:5], zeros(size(C,1), 5), atol=1e-14)
55+
@test isapprox((C * Z)[:, 1:5], C[:,1:7] * Z[1:7, 1:5], atol=1e-14)
56+
57+
C = [Dirichlet(Chebyshev()); Dirichlet(Chebyshev(),1)]
58+
Q = QuotientSpace(Chebyshev(), C)
59+
Z = Conversion(Q, Chebyshev())
60+
@test isapprox((C * Z)[:, 1:5], zeros(size(C,1), 5), atol=1e-14)
61+
@test isapprox((C * Z)[:, 1:5], C[:,1:9] * Z[1:9, 1:5], atol=1e-14)
62+
end
4963
end
5064

5165
@testset "Derivative" begin

0 commit comments

Comments
 (0)