Skip to content

Commit acbad00

Browse files
committed
Use axes
1 parent 2833791 commit acbad00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/banded/BandedMatrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function _BandedMatrix(::BandedRows, A::AbstractMatrix)
269269
u, ℓ = bandwidths(A)
270270
m, n = size(A)
271271
data_new = similar(bdata, eltype(bdata), size(bdata, 2), n)
272-
for i in 1:(ℓ+u+1)
272+
for i in axes(bdata, 2)
273273
d = u + 1 - i
274274
row_new =+ 1 + d
275275
k_start = max(1, 1 - d)

0 commit comments

Comments
 (0)