Skip to content

Commit e974fc9

Browse files
committed
Update test_lanczos.jl
1 parent 87bcfd8 commit e974fc9

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/test_lanczos.jl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ import ClassicalOrthogonalPolynomials: recurrencecoefficients, PaddedLayout
100100
@testset "Singularity" begin
101101
T = Chebyshev(); wT = WeightedChebyshev()
102102
x = axes(T,1)
103-
103+
104104
w = wT * [1; zeros(∞)];
105105
Q = LanczosPolynomial(w)
106106
@test Q[0.1,1:10] Normalized(T)[0.1,1:10]
@@ -134,7 +134,7 @@ import ClassicalOrthogonalPolynomials: recurrencecoefficients, PaddedLayout
134134
@testset "Mixed Jacobi" begin
135135
P = Jacobi(1/2,0)
136136
x = axes(P,1)
137-
137+
138138
w = @. sqrt(1-x)
139139
Q = LanczosPolynomial(w, P)
140140
@test Q[0.1,1:10] Normalized(P)[0.1,1:10]
@@ -199,4 +199,13 @@ import ClassicalOrthogonalPolynomials: recurrencecoefficients, PaddedLayout
199199
R = LanczosPolynomial((t .- x).^(-1/2) .* ChebyshevWeight())
200200
@test R[0.1,2] -0.03269577983003056
201201
end
202+
203+
@testset "LanczosJacobiBand" begin
204+
x = Inclusion(ChebyshevInterval())
205+
Q = LanczosPolynomial( 1 ./ (2 .+ x))
206+
X = jacobimatrix(Q)
207+
@test X.dv[3:10] [X[k,k] for k in 3:10]
208+
@test X.dv[3:∞][1:5] X.dv[3:7]
209+
@test X.dv[3:∞][2:∞][1:5] X.dv[4:8]
210+
end
202211
end

0 commit comments

Comments
 (0)