Skip to content

Commit ff182bd

Browse files
committed
fix N = 0 case
1 parent a85da70 commit ff182bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clenshaw.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function ClenshawRecurrenceData{T,S}(sp::S, N) where {T,S<:JacobiTriangle}
2424
B̃ˣ = Vector{BandedMatrix{T,Matrix{T}}}(undef, N-1)
2525
B̃ʸ = Vector{BandedMatrix{T,Matrix{T}}}(undef, N-1)
2626
B = Vector{BandedMatrix{T,Matrix{T}}}(undef, N-1)
27-
C = Vector{BandedMatrix{T,Matrix{T}}}(undef, N-2)
27+
C = Vector{BandedMatrix{T,Matrix{T}}}(undef, max(N-2,0))
2828
Jx_∞, Jy_∞ = jacobioperators(sp)
2929
Jx, Jy = BandedBlockBandedMatrix(Jx_∞[Block.(1:N), Block.(1:N-1)]),
3030
BandedBlockBandedMatrix(Jy_∞[Block.(1:N), Block.(1:N-1)])

0 commit comments

Comments
 (0)