Skip to content

Commit 669f0a7

Browse files
committed
Update multivariatelanczos.jl
1 parent 2e73e8f commit 669f0a7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/multivariatelanczos.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ using MultivariateOrthogonalPolynomials, ClassicalOrthogonalPolynomials, Test
22

33
P = Legendre()
44
= RectPolynomial(P,P)
5+
p₀ = expand(P², 𝐱 -> 1)
6+
𝐱 = axes(P²,1)
7+
x,y = first.(𝐱),last.(𝐱)
8+
w =/\ (x-y).^2
9+
10+
w .* p₀
511

612

7-
p₀ = expand(P², 𝐱 -> 1)
813
sum(p₀)
914
using LazyBandedMatrices
1015
KronTrav(sum(P;dims=1), sum(P;dims=1))

0 commit comments

Comments
 (0)