Skip to content

Commit 435569a

Browse files
authored
Fix #257 (#258)
* Fix #257 * Bump version from 0.15.11 to 0.15.12
1 parent 7d2102d commit 435569a

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ClassicalOrthogonalPolynomials"
22
uuid = "b30e2e7b-c4ee-47da-9d5f-2c5c27239acd"
3-
version = "0.15.11"
3+
version = "0.15.12"
44
authors = ["Sheehan Olver <[email protected]>"]
55

66
[deps]

src/clenshaw.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,5 @@ _broadcasted_layout_broadcasted_mul(_, wv, P) = layout_broadcasted(nothing, *, w
139139
# constructor for Clenshaw
140140
function Clenshaw(a::AbstractQuasiVector, X::AbstractQuasiMatrix)
141141
P,c = arguments(a)
142-
Clenshaw(paddeddata(c), recurrencecoefficients(P)..., jacobimatrix(X), _p0(P))
142+
Clenshaw(paddeddata(c), recurrencecoefficients(P)..., jacobimatrix(X), convert(promote_type(eltype(a), eltype(X)), _p0(P)))
143143
end

test/test_ultraspherical.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,13 @@ using ClassicalOrthogonalPolynomials: grammatrix
218218
@test lhs rhs
219219
end
220220
end
221+
222+
@testset "Issue #257" begin
223+
T = chebyshevt(0 .. 1) # solution basis is T_n
224+
C = ultraspherical(1, 0 .. 1) # RHS basis is C_n^(2)
225+
s = axes(T, 1)
226+
227+
op = (s .+ im) .* T
228+
@test (C \ op)[1,1] 0.5 + im
229+
end
221230
end

0 commit comments

Comments
 (0)