Skip to content

Commit 9cf865d

Browse files
committed
Update chebyshev.jl
1 parent 9478907 commit 9cf865d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classical/chebyshev.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ weightedgrammatrix(::ChebyshevU{V}) where V = Diagonal(Fill(convert(V,π)/2,∞)
159159
@simplify *(A::QuasiAdjoint{<:Any,<:Weighted{<:Any,<:ChebyshevU}}, B::ChebyshevU) = weightedgrammatrix(ChebyshevU{promote_type(eltype(A),eltype(B))}())
160160

161161
function grammatrix(A::ChebyshevT{T}) where T
162-
f = (k,j) -> isodd(j-k) ? zero(T) : -((T(2)*(-1 + j^2 + k^2))/((-1 + j - k)*(-1 + j + k)*(1 + j - k)*(1 + j + k))
162+
f = (k,j) -> isodd(j-k) ? zero(T) : -(T(2)*(-1 + j^2 + k^2))/((-1 + j - k)*(-1 + j + k)*(1 + j - k)*(1 + j + k))
163163
BroadcastMatrix{T}(f, 0:∞, (0:∞)')
164164
end
165165

0 commit comments

Comments
 (0)