Skip to content

Commit 5811413

Browse files
authored
Fix #45 (#46)
* Fix #45 * Update Project.toml * Update Project.toml * Update Project.toml
1 parent 61b6980 commit 5811413

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

Project.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClassicalOrthogonalPolynomials"
22
uuid = "b30e2e7b-c4ee-47da-9d5f-2c5c27239acd"
33
authors = ["Sheehan Olver <[email protected]>"]
4-
version = "0.4.2"
4+
version = "0.4.3"
55

66
[deps]
77
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
@@ -29,8 +29,8 @@ ArrayLayouts = "0.7"
2929
BandedMatrices = "0.16.5"
3030
BlockArrays = "0.15, 0.16"
3131
BlockBandedMatrices = "0.10"
32-
ContinuumArrays = "0.8.1"
33-
DomainSets = "0.4, 0.5"
32+
ContinuumArrays = "0.8.5"
33+
DomainSets = "0.5"
3434
FFTW = "1.1"
3535
FastGaussQuadrature = "0.4.3"
3636
FastTransforms = "0.12"
@@ -39,9 +39,9 @@ HypergeometricFunctions = "0.3.4"
3939
InfiniteArrays = "0.11.1"
4040
InfiniteLinearAlgebra = "0.5.8"
4141
IntervalSets = "0.5"
42-
LazyArrays = "0.21"
42+
LazyArrays = "0.21.9"
4343
LazyBandedMatrices = "0.6"
44-
QuasiArrays = "0.6"
44+
QuasiArrays = "0.7"
4545
SpecialFunctions = "1.0"
4646
julia = "1.6"
4747

test/test_chebyshev.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ import ContinuumArrays: MappedWeightedBasisLayout, Map
117117
U = chebyshevu(0..1)
118118
@test (U*(U\x))[0.1] 0.1
119119
@test (U* (U \ exp.(x)))[0.1] exp(0.1)
120+
121+
@testset "Trivial map" begin
122+
T = ChebyshevT()
123+
x = Inclusion(-1..1)
124+
@test T == T[x,:] == T[x,1:∞] == T[:,1:∞]
125+
@test T[x,:] == T
126+
end
120127
end
121128

122129
@testset "weighted" begin

test/test_lanczos.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,4 +231,13 @@ import ClassicalOrthogonalPolynomials: recurrencecoefficients, PaddedLayout, ort
231231
= LanczosPolynomial( @.(inv(1+^2)))
232232
@test all((x,w) .≈ golubwelsch(Q̃[:,Base.OneTo(10)]))
233233
end
234+
235+
@testset "ambiguity (#45)" begin
236+
x = Inclusion(-1.0..1)
237+
a = 1.5
238+
ϕ = x.^4 - (a^2 + 1)*x.^2 .+ a^2
239+
= Normalized(LanczosPolynomial(ϕ))
240+
P = Normalized(Legendre())
241+
=\P
242+
end
234243
end

0 commit comments

Comments
 (0)