Skip to content

Commit 87bcfd8

Browse files
committed
Avoid ambiguity warning in getindex for LanczosJacobiBand
1 parent cd41669 commit 87bcfd8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClassicalOrthogonalPolynomials"
22
uuid = "b30e2e7b-c4ee-47da-9d5f-2c5c27239acd"
33
authors = ["Sheehan Olver <[email protected]>"]
4-
version = "0.2.0"
4+
version = "0.2.1"
55

66
[deps]
77
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

src/lanczos.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ end
140140

141141
getindex(A::LanczosJacobiBand, I::Integer) = _lanczos_getindex(A, I)
142142
getindex(A::LanczosJacobiBand, I::AbstractVector) = _lanczos_getindex(A, I)
143-
getindex(K::LanczosJacobiBand, k::AbstractInfUnitRange) = view(K, k)
144-
getindex(K::SubArray{<:Any,1,<:LanczosJacobiBand}, k::AbstractInfUnitRange) = view(K, k)
143+
getindex(K::LanczosJacobiBand, k::AbstractInfUnitRange{<:Integer}) = view(K, k)
144+
getindex(K::SubArray{<:Any,1,<:LanczosJacobiBand}, k::AbstractInfUnitRange{<:Integer}) = view(K, k)
145145

146146
copy(A::LanczosJacobiBand) = A # immutable
147147

0 commit comments

Comments
 (0)