Skip to content

Commit 5afca7c

Browse files
committed
Also replace two remaining @views
1 parent 73c4666 commit 5afca7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/pullbacks/svd.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function remove_svd_gauge_dependence!(
346346
mul!(ΔU₁, U₁, gaugepart, -1, 1)
347347
if size(ΔU, 2) > r
348348
if r < length(Sdiag) # rank-deficient case, no stable information can be extracted from extra columns of U
349-
zero!(@view ΔU[:, (r + 1):end])
349+
zero!(view(ΔU, :, (r + 1):size(ΔU, 2)))
350350
else # the component of ΔU₂ along U₁ contains gauge-invariant information
351351
p = size(ΔU, 2)
352352
ΔU₂ = view(ΔU, :, (r + 1):p)
@@ -356,7 +356,7 @@ function remove_svd_gauge_dependence!(
356356
end
357357
if size(ΔVᴴ, 1) > r
358358
if r < length(Sdiag) # rank-deficient case, no stable information can be extracted from extra rows of Vᴴ
359-
zero!(@view ΔVᴴ[(r + 1):end, :])
359+
zero!(view(ΔVᴴ, (r + 1):size(ΔVᴴ, 1), :))
360360
else # the component of ΔVᴴ₂ along Vᴴ₁ contains gauge-invariant information
361361
p = size(ΔVᴴ, 1)
362362
ΔVᴴ₂ = view(ΔVᴴ, (r + 1):p, :)

0 commit comments

Comments
 (0)