Skip to content

Commit 5d48cc5

Browse files
authored
Consistency with ClassicalOPs 0.12.4 (#96)
* consistency fix for ClassicalOPs 0.12.4+
1 parent 62a0399 commit 5d48cc5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SemiclassicalOrthogonalPolynomials"
22
uuid = "291c01f3-23f6-4eb6-aeb0-063a639b53f2"
33
authors = ["Sheehan Olver <[email protected]>"]
4-
version = "0.5.4"
4+
version = "0.5.5"
55

66
[deps]
77
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
@@ -20,7 +20,7 @@ SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
2020
[compat]
2121
ArrayLayouts = "1"
2222
BandedMatrices = "0.17, 1"
23-
ClassicalOrthogonalPolynomials = "0.11, 0.12"
23+
ClassicalOrthogonalPolynomials = "0.12.4"
2424
ContinuumArrays = "0.15, 0.16, 0.17"
2525
FillArrays = "1"
2626
HypergeometricFunctions = "0.3.4"

src/SemiclassicalOrthogonalPolynomials.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ function semiclassical_jacobimatrix(t, a, b, c)
142142
P = Normalized(jacobi(b, a, UnitInterval{T}()))
143143
iszero(c) && return jacobimatrix(P)
144144
if isone(c)
145-
return cholesky_jacobimatrix(x->(t-x),P)
145+
return cholesky_jacobimatrix(Symmetric(P \ ((t.-axes(P,1)).*P)), P)
146146
elseif isone(c/2)
147-
return qr_jacobimatrix(x->(t-x),P)
147+
return qr_jacobimatrix(Symmetric(P \ ((t.-axes(P,1)).*P)), P)
148148
elseif isinteger(c) && c 0 # reduce other integer c cases to hierarchy
149149
return SemiclassicalJacobi.(t, a, b, 0:Int(c))[end].X
150150
else # if c is not an integer, use Lanczos

0 commit comments

Comments
 (0)