Skip to content

Commit f8463bf

Browse files
lkdvosJutho
andauthored
Update src/factorizations/truncation.jl
Co-authored-by: Jutho <[email protected]>
1 parent fe980c0 commit f8463bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/factorizations/truncation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function truncate_diagonal!(Ddst::DiagonalTensorMap, Dsrc::DiagonalTensorMap, in
5353
for (c, b) in blocks(Ddst)
5454
I = get(inds, c, nothing)
5555
@assert !isnothing(I)
56-
copy!(diagview(b), @view(diagview(block(Dsrc, c))[I]))
56+
copy!(diagview(b), view(diagview(block(Dsrc, c)), I))
5757
end
5858
return Ddst
5959
end

0 commit comments

Comments
 (0)