Skip to content

Commit 5c38eff

Browse files
committed
Add Chebyshev example
1 parent 0155e48 commit 5c38eff

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/test_bidiagonalconjugation.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using ArrayLayouts: supdiagonaldata, subdiagonaldata, diagonaldata
44
using LinearAlgebra
55
using LazyArrays: LazyLayout
66

7-
@testset "BidiagonalConjugationData" begin
7+
@testset "BidiagonalConjugation" begin
88
@test InfiniteLinearAlgebra._to_uplo('U') == 'U'
99
@test InfiniteLinearAlgebra._to_uplo('L') == 'L'
1010
@test_throws ArgumentError InfiniteLinearAlgebra._to_uplo('a')
@@ -87,4 +87,12 @@ using LazyArrays: LazyLayout
8787
@test B'[3000:3005, 2993:3006] A[2993:3006, 3000:3005]'
8888
end
8989
end
90+
91+
@testset "Chebyshev" begin
92+
R0 = BandedMatrix(0 => [1; Fill(0.5,∞)], 2 => Fill(-0.5,∞))
93+
D0 = BandedMatrix(1 => 1:∞)
94+
R1 = BandedMatrix(0 => 1 ./ (1:∞), 2 => -1 ./ (3:∞))
95+
96+
BidiagonalConjugation(R1, D0, R0, :U)
97+
end
9098
end

0 commit comments

Comments
 (0)