@@ -70,21 +70,23 @@ using Static
70
70
we don't use the floating point orders directly in tests
71
71
See https://github.com/SciML/Static.jl/issues/97
72
72
=#
73
+ L = Jacobi (static (0 ), static (0 ))
73
74
@testset " Jacobi" begin
74
- CLL = @inferred Conversion (Legendre (), Legendre () )
75
+ CLL = @inferred Conversion (L, L )
75
76
@test convert (Number, CLL) == 1
76
- CNLNL = @inferred Conversion (NormalizedLegendre (), NormalizedLegendre ())
77
+ NL = NormalizedPolynomialSpace (L)
78
+ CNLNL = @inferred Conversion (NL, NL)
77
79
@test convert (Number, CNLNL) == 1
78
- CLNL = @inferred Conversion (Legendre (), NormalizedLegendre () )
80
+ CLNL = @inferred Conversion (L, NL )
79
81
@test CLNL * Fun (Legendre ()) ≈ Fun (NormalizedLegendre ())
80
- CNLL = @inferred Conversion (NormalizedLegendre (), Legendre () )
82
+ CNLL = @inferred Conversion (NL, L )
81
83
@test CNLL * Fun (NormalizedLegendre ()) ≈ Fun (Legendre ())
82
84
end
83
85
84
86
@testset " Chebyshev" begin
85
- CCL = @inferred Conversion (Chebyshev (), Legendre () )
87
+ CCL = @inferred Conversion (Chebyshev (), L )
86
88
@test CCL * Fun (Chebyshev ()) ≈ Fun (Legendre ())
87
- CLC = @inferred Conversion (Legendre () , Chebyshev ())
89
+ CLC = @inferred Conversion (L , Chebyshev ())
88
90
@test CLC * Fun (Legendre ()) ≈ Fun (Chebyshev ())
89
91
90
92
@inferred Conversion (Chebyshev (), Jacobi (static (- 0.5 ), static (- 0.5 )))
@@ -106,9 +108,9 @@ using Static
106
108
end
107
109
108
110
@testset " Ultraspherical" begin
109
- CUL = @inferred Conversion (Ultraspherical (static (0.5 )), Legendre () )
111
+ CUL = @inferred Conversion (Ultraspherical (static (0.5 )), L )
110
112
@test CUL * Fun (Ultraspherical (0.5 )) ≈ Fun (Legendre ())
111
- CLU = @inferred Conversion (Legendre () , Ultraspherical (static (0.5 )))
113
+ CLU = @inferred Conversion (L , Ultraspherical (static (0.5 )))
112
114
@test CLU * Fun (Legendre ()) ≈ Fun (Ultraspherical (0.5 ))
113
115
114
116
@inferred Conversion (Ultraspherical (static (0.5 )), Jacobi (static (1 ),static (1 )))
@@ -242,7 +244,8 @@ using Static
242
244
@test (g* f)(.1 ) ≈ cos (.1 )* exp (.1 )
243
245
244
246
@testset " Mutliplication in a normalized space" begin
245
- M = @inferred Multiplication (Fun (Legendre ()), NormalizedLegendre ())
247
+ L = Jacobi (static (0 ), static (0 ))
248
+ M = @inferred Multiplication (Fun (L), NormalizedPolynomialSpace (L))
246
249
@test M * Fun (NormalizedLegendre ()) ≈ Fun (x-> x^ 2 , NormalizedLegendre ())
247
250
end
248
251
end
0 commit comments