Skip to content

Commit 17d6057

Browse files
authored
Improve inference in blockintercer iteration (#362)
* improve inference in blockintercer iteration * use Base.setindex
1 parent 6b777fe commit 17d6057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinearAlgebra/helper.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ function iterate(it::BlockInterlacer, (N,k,blkst,lngs))
752752
end
753753

754754

755-
lngs = tuple(lngs[1:N-1]...,lngs[N]+1,lngs[N+1:end]...)
755+
lngs = Base.setindex(lngs, lngs[N]+1, N)
756756
return (N,lngs[N]),(N,k+1,blkst,lngs)
757757
end
758758

0 commit comments

Comments
 (0)