Skip to content

Commit 8b1f7e9

Browse files
BigFloat accurate conversion operators (#89)
* Update ClassicalOrthogonalPolynomials.jl * Fix for BigFloat accurate conversion operators
1 parent acb850b commit 8b1f7e9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ClassicalOrthogonalPolynomials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ _equals(::WeightedOPLayout, ::WeightedOPLayout, wP, wQ) = unweighted(wP) == unwe
110110
_equals(::WeightedOPLayout, ::WeightedBasisLayout, wP, wQ) = unweighted(wP) == unweighted(wQ) && weight(wP) == weight(wQ)
111111
_equals(::WeightedBasisLayout, ::WeightedOPLayout, wP, wQ) = unweighted(wP) == unweighted(wQ) && weight(wP) == weight(wQ)
112112
_equals(::WeightedBasisLayout{<:AbstractOPLayout}, ::WeightedBasisLayout{<:AbstractOPLayout}, wP, wQ) = unweighted(wP) == unweighted(wQ) && weight(wP) == weight(wQ)
113-
113+
114114

115115
copy(L::Ldiv{MappedOPLayout,Lay}) where Lay<:MappedBasisLayouts = copy(Ldiv{MappedBasisLayout,Lay}(L.A,L.B))
116116

src/classical/chebyshev.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,15 @@ factorize(L::SubQuasiArray{T,2,<:ChebyshevU,<:Tuple{<:Inclusion,<:OneTo}}) where
118118
# Jacobi Matrix
119119
########
120120

121-
jacobimatrix(C::ChebyshevT{T}) where T =
121+
jacobimatrix(C::ChebyshevT{T}) where T =
122122
Tridiagonal(Vcat(one(T), Fill(one(T)/2,∞)), Zeros{T}(∞), Fill(one(T)/2,∞))
123123

124124
jacobimatrix(C::ChebyshevU{T}) where T =
125125
SymTridiagonal(Zeros{T}(∞), Fill(one(T)/2,∞))
126126

127127

128128

129-
# These return vectors A[k], B[k], C[k] are from DLMF.
129+
# These return vectors A[k], B[k], C[k] are from DLMF.
130130
recurrencecoefficients(C::ChebyshevT) = (Vcat(1, Fill(2,∞)), Zeros{Int}(∞), Ones{Int}(∞))
131131
recurrencecoefficients(C::ChebyshevU) = (Fill(2,∞), Zeros{Int}(∞), Ones{Int}(∞))
132132

@@ -226,7 +226,7 @@ function \(A::ChebyshevT, B::Legendre)
226226
(iseven(k) == iseven(j) && j k) || return zero(T)
227227
k == 1 && return Λ(convert(T,j-1)/2)^2/π
228228
2/π * Λ(convert(T,j-k)/2) * Λ(convert(T,k+j-2)/2)
229-
end, 1:, (1:∞)'))
229+
end, convert(AbstractVector{T},1:), convert(AbstractVector{T},1:∞)'))
230230
end
231231

232232
\(A::AbstractJacobi, B::Chebyshev) = ApplyArray(inv,B \ A)
@@ -277,4 +277,4 @@ end
277277
####
278278

279279
broadcastbasis(::typeof(+), ::ChebyshevT, U::ChebyshevU) = U
280-
broadcastbasis(::typeof(+), U::ChebyshevU, ::ChebyshevT) = U
280+
broadcastbasis(::typeof(+), U::ChebyshevU, ::ChebyshevT) = U

0 commit comments

Comments
 (0)