Skip to content

Commit 2ea41a3

Browse files
committed
avoid enumerate
1 parent b1ae30f commit 2ea41a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/factorizations/truncation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ function MatrixAlgebraKit.truncate!(
5353
bI_Vᴴs = collect(eachblockstoredindex(Vᴴ))
5454

5555
I′ = 0 # number of skipped blocks that got fully truncated
56-
for (I, b) in enumerate(blocks(ax))
56+
for I in 1:blocksize(ax, 1)
57+
b = ax[Block(I)]
5758
mask = indexmask[b]
5859

5960
if !any(mask)
@@ -82,4 +83,3 @@ function MatrixAlgebraKit.truncate!(
8283

8384
return Ũ, S̃, Ṽᴴ
8485
end
85-

0 commit comments

Comments
 (0)