Skip to content

Commit 6388cba

Browse files
authored
Avoid band in b=-1 diff (#146)
* Avoid band * Remove bandeddata * Bump version
1 parent 03f3281 commit 6388cba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "SemiclassicalOrthogonalPolynomials"
22
uuid = "291c01f3-23f6-4eb6-aeb0-063a639b53f2"
3-
version = "0.7.2"
3+
version = "0.7.3"
44
authors = ["Sheehan Olver <[email protected]>"]
55

66
[deps]

src/derivatives.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ function diff(P::SemiclassicalJacobi{T}; dims=1) where {T}
5454
D = diff(WP1)
5555
Pᵗᵃ⁺¹⁰ᶜ⁺¹ = D.args[1].P
5656
Dmat = D.args[2]
57-
b2 = Vcat(zero(T), zero(T), Dmat[band(1)])
58-
b1 = Vcat(zero(T), Dmat[band(0)])
59-
data = Hcat(b2, b1)'
57+
b2 = Vcat(zero(T), Dmat.dv)
58+
b1 = Vcat(zero(T), zero(T), Dmat.ev)
59+
data = Vcat(b1', b2')
6060
D = _BandedMatrix(data, ∞, -1, 2)
6161
return Pᵗᵃ⁺¹⁰ᶜ⁺¹ * D
6262
end

0 commit comments

Comments
 (0)