Skip to content

Commit

Permalink
Update SemiclassicalOrthogonalPolynomials.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVandH authored Jul 1, 2024
1 parent f74b9ae commit 58739e3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/SemiclassicalOrthogonalPolynomials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,6 @@ function semiclassical_jacobimatrix(t, a, b, c)
return jacobimatrix(LanczosPolynomial(@.(x^a * (1-x)^b * (t-x)^c), jacobi(b, a, UnitInterval{T}())))
end
end
P = Normalized(jacobi(b, a, UnitInterval{T}()))
iszero(c) && return jacobimatrix(P)
if isone(c)
return cholesky_jacobimatrix(Symmetric(P \ ((t.-axes(P,1)).*P)), P)
elseif c == 2
return qr_jacobimatrix(Symmetric(P \ ((t.-axes(P,1)).*P)), P)
elseif isinteger(c) && c 0 # reduce other integer c cases to hierarchy
return SemiclassicalJacobi.(t, a, b, 0:Int(c))[end].X
else # if c is not an integer, use Lanczos
x = axes(P,1)
return jacobimatrix(LanczosPolynomial(@.(x^a * (1-x)^b * (t-x)^c), jacobi(b, a, UnitInterval{T}())))
end
end

function semiclassical_jacobimatrix(Q::SemiclassicalJacobi, a, b, c)
Expand Down

0 comments on commit 58739e3

Please sign in to comment.