Skip to content

Commit adb2aec

Browse files
authored
@propagate_inbounds in indexing a BandSlice (#377)
* propagate_inbounds in indexing BandSlice * bump version to v0.17.29
1 parent 529be5d commit adb2aec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "BandedMatrices"
22
uuid = "aae01518-5342-5314-be14-df237901396f"
3-
version = "0.17.28"
3+
version = "0.17.29"
44

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

src/generic/Band.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ for f in (:indices, :unsafe_indices, :axes1, :first, :last, :size, :length,
211211
@eval $f(S::BandSlice) = $f(S.indices)
212212
end
213213

214-
getindex(S::BandSlice, i::Union{Int, AbstractRange}) = getindex(S.indices, i)
214+
@propagate_inbounds getindex(S::BandSlice, i::Union{Int, AbstractRange}) = getindex(S.indices, i)
215215
show(io::IO, r::BandSlice) = print(io, "BandSlice(", r.band, ", ", r.indices, ")")
216216

217217
to_index(::Band) = throw(ArgumentError("Block must be converted by to_indices(...)"))

0 commit comments

Comments
 (0)