Skip to content

Commit 36ce8a5

Browse files
committed
Update ultraspherical.jl
1 parent 56f5f9f commit 36ce8a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/classical/ultraspherical.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ end
139139

140140
# higher order
141141

142-
function diff(::ChebyshevT{T}, m::Integer; dims=1) where T
142+
function diff(S::ChebyshevT{T}, m::Integer; dims=1) where T
143+
iszero(m) && return S
144+
isone(m) && return diff(S)
143145
μ = pochhammer(one(T),m-1)*convert(T,2)^(m-1)
144146
D = _BandedMatrix((μ * (0:∞))', ℵ₀, -m, m)
145147
ApplyQuasiMatrix(*, Ultraspherical{T}(m), D)

0 commit comments

Comments
 (0)