You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/test_rect.jl
+36-7Lines changed: 36 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
using MultivariateOrthogonalPolynomials, ClassicalOrthogonalPolynomials, StaticArrays, LinearAlgebra, BlockArrays, FillArrays, Base64, LazyBandedMatrices, Test
1
+
using MultivariateOrthogonalPolynomials, ClassicalOrthogonalPolynomials, StaticArrays, LinearAlgebra, BlockArrays, FillArrays, Base64, LazyBandedMatrices, ArrayLayouts, Test
2
2
using ClassicalOrthogonalPolynomials: expand, coefficients, recurrencecoefficients
3
3
using MultivariateOrthogonalPolynomials: weaklaplacian, ClenshawKron
4
-
using ContinuumArrays: plotgridvalues
4
+
using ContinuumArrays: plotgridvalues, ExpansionLayout
5
5
using Base: oneto
6
6
7
7
@testset"RectPolynomial"begin
@@ -148,11 +148,12 @@ using Base: oneto
148
148
end
149
149
150
150
@testset"sum"begin
151
-
P =RectPolynomial(Legendre(),Legendre())
152
-
p₀ =expand(P, 𝐱 ->1)
153
-
@testsum(p₀) ≈4.0
154
-
f =expand(P, splat((x,y) ->exp(cos(x^2*y))))
155
-
@testsum(f) ≈10.546408460894801# empirical
151
+
for P in (RectPolynomial(Legendre(),Legendre()), RectPolynomial(Legendre(),Chebyshev()))
0 commit comments