Skip to content

Commit e77afea

Browse files
authored
remove some inbounds annotations (#432)
* remove some inbounds annotations * version bump to v0.8.10
1 parent 367adf9 commit e77afea

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.8.9"
3+
version = "0.8.10"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/Caching/matrix.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ function mulpars(Ac::Adjoint{T,<:QROperatorQ{QROperator{RR,Matrix{T},T},T}},
5656

5757
if M == 1 # diagonal scaling, avoid growing
5858
ret = inplace isa Val{true} ? B : similar(B)
59-
@simd for k in eachindex(ret)
60-
@inbounds ret[k]=(1-2H[1,k]^2)*B[k]
59+
for k in eachindex(ret)
60+
ret[k]=(1-2H[1,k]^2)*B[k]
6161
end
6262
return ret
6363
end

src/Caching/ragged.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ for ArrTyp in (:AbstractVector, :AbstractMatrix)
134134

135135
A = parent(V)
136136

137-
for c=1:size(u,2)
138-
for k=n:-1:1
139-
@inbounds ck = A.cols[k]
140-
@inbounds u[k,c] /= A.data[ck+k-1]
141-
axpy!(-u[k,c], view(A.data,ck:ck+k-2), view(u,1:k-1,c))
137+
for c=axes(u,2)
138+
for k=reverse(axes(u,1))
139+
ck = A.cols[k]
140+
u[k,c] /= A.data[ck+k-1]
141+
axpy!(-u[k,c], view(A.data, range(ck, length=k-1)), view(u,1:k-1,c))
142142
end
143143
end
144144
u

0 commit comments

Comments
 (0)