Skip to content

Commit 8246067

Browse files
committed
_sum for ChebyshevT
1 parent cdc923b commit 8246067

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/classical/chebyshev.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ function _sum(::Weighted{T,<:ChebyshevU}, dims::Int) where T
302302
end
303303

304304
# Same normalization for T,V,W
305-
function _sum(::Weighted{T,<:Chebyshev}, dims::Int) where T
305+
function _sum(::Weighted{T,<:ChebyshevT}, dims::Int) where T
306306
@assert dims == 1
307307
Hcat(convert(T, π), Zeros{T}(1,∞))
308308
end
@@ -318,6 +318,11 @@ function _cumsum(W::Weighted{V, ChebyshevT{V}}, dims::Int) where V
318318
[cumsum(ChebyshevTWeight{V}()) Weighted(ChebyshevU{V}())] * Diagonal(Vcat(one(V), -inv.(one(V):∞)))
319319
end
320320

321+
function _sum(::ChebyshevT{T}, dims::Int) where T
322+
@assert dims == 1
323+
permutedims(vec(Hcat(Vcat(2one(T), -(2one(T)) ./ ((3:2:∞) .* (1:2:∞))), Zeros{T}(∞))'))
324+
end
325+
321326
####
322327
# algebra
323328
####

0 commit comments

Comments
 (0)