Skip to content

Commit 8944a22

Browse files
authored
Mark the indexing as @inbounds in triu! (#52117)
1 parent b567b37 commit 8944a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/LinearAlgebra/src/dense.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function triu!(M::AbstractMatrix, k::Integer)
136136
m, n = size(M)
137137
for j in 1:min(n, m + k)
138138
for i in max(1, j - k + 1):m
139-
M[i,j] = zero(M[i,j])
139+
@inbounds M[i,j] = zero(M[i,j])
140140
end
141141
end
142142
M

0 commit comments

Comments
 (0)