Skip to content

Commit 72354ea

Browse files
committed
Fix ambiguity with MappedOPs and Expansions
1 parent 6b20e37 commit 72354ea

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
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.11.5"
4+
version = "0.11.6"
55

66
[deps]
77
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

src/ClassicalOrthogonalPolynomials.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ equals_layout(::WeightedBasisLayout{<:AbstractOPLayout}, ::WeightedBasisLayout{<
117117

118118

119119
copy(L::Ldiv{MappedOPLayout,Lay}) where Lay = copy(Ldiv{MappedBasisLayout,Lay}(L.A,L.B))
120+
copy(L::Ldiv{MappedOPLayout,Lay}) where Lay<:ExpansionLayout = copy(Ldiv{MappedBasisLayout,Lay}(L.A,L.B))
120121
copy(L::Ldiv{MappedOPLayout,Lay}) where Lay<:AbstractLazyLayout = copy(Ldiv{MappedBasisLayout,Lay}(L.A,L.B))
121122
copy(L::Ldiv{MappedOPLayout,Lay}) where Lay<:AbstractBasisLayout = copy(Ldiv{MappedBasisLayout,Lay}(L.A,L.B))
122123
copy(L::Ldiv{MappedOPLayout,BroadcastLayout{typeof(-)}}) = copy(Ldiv{MappedBasisLayout,BroadcastLayout{typeof(-)}}(L.A,L.B))

test/test_chebyshev.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,13 @@ import ContinuumArrays: MappedWeightedBasisLayout, Map, WeightedBasisLayout
186186
@test T \ (exp.(x) .+ cos.(x)) transform(T, x -> exp(x)+cos(x))
187187
@test T \ (exp.(x) .- cos.(x)) transform(T, x -> exp(x)-cos(x))
188188
end
189+
190+
@testset "expansion" begin
191+
x = Inclusion(0..1)
192+
T = Chebyshev()[2x .- 1,:]
193+
f = T * [1:3; zeros(∞)]
194+
@test T \ f [1:3; zeros(∞)]
195+
end
189196
end
190197

191198
@testset "weighted" begin

0 commit comments

Comments
 (0)