Skip to content

Commit cdc923b

Browse files
committed
more overloads
1 parent 769c62d commit cdc923b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/classical/chebyshev.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,24 +296,24 @@ 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,∞))
302302
end
303303

304304
# Same normalization for T,V,W
305-
function _sum(::Weighted{T,<:Chebyshev}, dims) where T
305+
function _sum(::Weighted{T,<:Chebyshev}, dims::Int) where T
306306
@assert dims == 1
307307
Hcat(convert(T, π), Zeros{T}(1,∞))
308308
end
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:∞)'* Σ, Σ))
314314
end
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):∞)))
319319
end

src/classical/legendre.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ end
254254
# sum
255255
###
256256

257-
function _sum(P::Legendre{T}, dims) where T
257+
function _sum(P::Legendre{T}, dims::Int) where T
258258
@assert dims == 1
259259
Hcat(convert(T, 2), Zeros{T}(1,∞))
260260
end

src/interlace.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ end
272272
# sum
273273
###
274274

275-
_sum(P::PiecewiseInterlace, dims) = BlockBroadcastArray(hcat, unitblocks.(_sum.(P.args, dims))...)
275+
_sum(P::PiecewiseInterlace, dims::Int) = BlockBroadcastArray(hcat, unitblocks.(_sum.(P.args, dims))...)
276276

277277
# blockvector2vectortuple
278278

0 commit comments

Comments
 (0)