Skip to content

Commit bc440cb

Browse files
committed
Update test_rect.jl
1 parent 40013e8 commit bc440cb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/test_rect.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ using ContinuumArrays: plotgridvalues
172172

173173
C = LazyBandedMatrices.paddeddata(LazyBandedMatrices.invdiagtrav(coefficients(𝐚)))
174174
m,n = size(C)
175-
using RecurrenceRelationshipArrays
175+
using RecurrenceRelationshipArrays, RecurrenceRelationships
176176
X_T = jacobimatrix(T)
177177
X_U = jacobimatrix(U)
178178
cfs = [Clenshaw(C[1:m-j+1,j], recurrencecoefficients(T)..., X_T) for j=1:n]
@@ -182,5 +182,13 @@ using ContinuumArrays: plotgridvalues
182182

183183
@test (KronTrav(Eye(∞),cfs[1]) + KronTrav(2X_U,cfs[2]) + KronTrav((4X_U^2 - I),cfs[3]))[KR,KR]
184184
KronTrav(Eye(3),cfs[1][1:3,1:3]) + KronTrav(2X_U[1:3,1:3],cfs[2][1:3,1:3])+ KronTrav((4X_U^2 - I)[1:3,1:3],cfs[3][1:3,1:3]) A[KR,KR]
185+
186+
g = (a,b,N) -> LazyBandedMatrices.krontrav(a[1:N,1:N], b[1:N,1:N])
187+
N = 10
188+
M = m-2+N # over sample
189+
@time U_X = forwardrecurrence(length(cfs), recurrencecoefficients(U)..., X_U[1:M,1:M]);
190+
@time Ks = broadcast(g, U_X, cfs, N);
191+
@time A_N = +(Ks...)
192+
@test A_N A[Block.(1:N),Block.(1:N)]
185193
end
186194
end

0 commit comments

Comments
 (0)