Skip to content

Commit 526155c

Browse files
restore tests?
1 parent cd46f52 commit 526155c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/grammatrixtests.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ using FastTransforms, BandedMatrices, LazyArrays, LinearAlgebra, Test
2222
b = 4
2323
X = BandedMatrix(SymTridiagonal(zeros(T, n+b), [sqrt(T(n)^2/(4*n^2-1)) for n in 1:n+b-1])) # normalized Legendre X
2424
M = Symmetric((I+X^2+X^4)[1:n, 1:n])
25-
W = GramMatrix(M, X[1:n, 1:n])
25+
X = BandedMatrix(SymTridiagonal(zeros(T, n), [sqrt(T(n)^2/(4*n^2-1)) for n in 1:n-1])) # normalized Legendre X
26+
W = GramMatrix(M, X)
2627
@test bandwidths(W) == (b, b)
2728
F = cholesky(W)
2829
@test F.L*F.L' M
2930

3031
X = BandedMatrix(SymTridiagonal(T[2n-1 for n in 1:n+b], T[-n for n in 1:n+b-1])) # Laguerre X, tests nonzero diagonal
3132
M = Symmetric((I+X^2+X^4)[1:n, 1:n])
32-
W = GramMatrix(M, X[1:n, 1:n])
33+
X = BandedMatrix(SymTridiagonal(T[2n-1 for n in 1:n], T[-n for n in 1:n-1])) # Laguerre X, tests nonzero diagonal
34+
W = GramMatrix(M, X)
3335
@test bandwidths(W) == (b, b)
3436
F = cholesky(W)
3537
@test F.L*F.L' M

0 commit comments

Comments
 (0)