Skip to content

Commit cd46f52

Browse files
add sym and posdef tests
1 parent 2544fcd commit cd46f52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/grammatrixtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ using FastTransforms, BandedMatrices, LazyArrays, LinearAlgebra, Test
66
R = plan_leg2cheb(T, n; normcheb=true)*I
77
X = Tridiagonal([T(n)/(2n-1) for n in 1:n-1], zeros(T, n), [T(n)/(2n+1) for n in 1:n-1]) # Legendre X
88
W = GramMatrix(Symmetric(R'R), X)
9+
@test issymmetric(W)
10+
@test isposdef(W)
911
F = cholesky(W)
1012
@test F.L*F.L' Symmetric(R'R)
1113
@test F.U R

0 commit comments

Comments
 (0)