@@ -296,28 +296,33 @@ end
296296# sum
297297# ###
298298
299- function _sum (:: Weighted{T,<:ChebyshevU} , dims) where T
299+ function _sum (:: Weighted{T,<:ChebyshevU} , dims:: Int ) where T
300300 @assert dims == 1
301301 Hcat (convert (T, π)/ 2 , Zeros {T} (1 ,∞))
302302end
303303
304304# Same normalization for T,V,W
305- function _sum (:: Weighted{T,<:Chebyshev } , dims) where T
305+ function _sum (:: Weighted{T,<:ChebyshevT } , dims:: Int ) where T
306306 @assert dims == 1
307307 Hcat (convert (T, π), Zeros {T} (1 ,∞))
308308end
309309
310- function _cumsum (T:: ChebyshevT{V} , dims) where V
310+ function _cumsum (T:: ChebyshevT{V} , dims:: Int ) where V
311311 @assert dims == 1
312312 Σ = _BandedMatrix (Vcat (- one (V) ./ (- 2 : 2 : ∞)' , Zeros {V} (1 ,∞), Hcat (one (V), one (V) ./ (4 : 2 : ∞)' )), ℵ₀, 0 , 2 )
313313 ApplyQuasiArray (* , T, Vcat ((- 1 ). ^ (0 : ∞)' * Σ, Σ))
314314end
315315
316- function _cumsum (W:: Weighted{V, ChebyshevT{V}} , dims) where V
316+ function _cumsum (W:: Weighted{V, ChebyshevT{V}} , dims:: Int ) where V
317317 @assert dims == 1
318318 [cumsum (ChebyshevTWeight {V} ()) Weighted (ChebyshevU {V} ())] * Diagonal (Vcat (one (V), - inv .(one (V): ∞)))
319319end
320320
321+ function _sum (:: ChebyshevT{T} , dims:: Int ) where T
322+ @assert dims == 1
323+ permutedims (vec (Hcat (Vcat (2 one (T), - (2 one (T)) ./ ((3 : 2 : ∞) .* (1 : 2 : ∞))), Zeros {T} (∞))' ))
324+ end
325+
321326# ###
322327# algebra
323328# ###
0 commit comments