Skip to content

Commit 00b7a65

Browse files
committed
Test KronTrav bug
1 parent 83af864 commit 00b7a65

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ FillArrays = "1.0"
3636
HarmonicOrthogonalPolynomials = "0.6"
3737
InfiniteArrays = "0.15"
3838
InfiniteLinearAlgebra = "0.9"
39-
LazyArrays = "2.0"
39+
LazyArrays = "2.3.1"
4040
LazyBandedMatrices = "0.11"
4141
QuasiArrays = "0.11"
4242
SpecialFunctions = "1, 2"

test/test_rect.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using MultivariateOrthogonalPolynomials, ClassicalOrthogonalPolynomials, StaticArrays, LinearAlgebra, BlockArrays, FillArrays, Base64, Test
1+
using MultivariateOrthogonalPolynomials, ClassicalOrthogonalPolynomials, StaticArrays, LinearAlgebra, BlockArrays, FillArrays, Base64, LazyBandedMatrices, Test
22
using ClassicalOrthogonalPolynomials: expand
33
using MultivariateOrthogonalPolynomials: weaklaplacian
44
using ContinuumArrays: plotgridvalues
@@ -146,4 +146,12 @@ using ContinuumArrays: plotgridvalues
146146
f = expand(P, splat((x,y) -> exp(cos(x^2*y))))
147147
@test sum(f) 10.546408460894801 # empirical
148148
end
149+
150+
@testset "KronTrav bug" begin
151+
W = Weighted(Ultraspherical(3/2))
152+
= diff(W)'diff(W)
153+
M = W'W
154+
Dₓ = KronTrav(D²,M)
155+
@test Dₓ[Block.(1:1),Block.(1:1)] == Dₓ[Block(1,1)]
156+
end
149157
end

0 commit comments

Comments
 (0)