Skip to content

Commit e5e90af

Browse files
committed
Fix tests
1 parent ee7be65 commit e5e90af

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/pushforwards/lq.jl‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ function lq_pushforward!(
5959
M = project_hermitian!(ΔQ₁Q₁ᴴ)
6060
_scale(i, j) = ifelse(i == j, 1, ifelse(i < j, 0, 2))
6161
M .*= _scale.(1:size(M, 1), transpose(1:size(M, 1)))
62-
view(M, uppertriangularind(M)) .= zero(eltype(M))
6362
mul!(ΔL₁₁, L₁₁, M)
6463
mul!(ΔQ₁, M, Q₁, -1, 1)
6564
mul!(ΔL₂₁, L₂₁, mul!(ΔQ₁Q₁ᴴ, ΔQ₁, Q₁'), -1, 1)

‎src/pushforwards/qr.jl‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ function qr_pushforward!(
5252

5353
Q₁ᴴΔQ₁ = Q₁' * ΔQ₁
5454
M = project_hermitian!(Q₁ᴴΔQ₁)
55-
_scale(i, j) = ifelse(i == j, 1, ifelse(i < j, 0, 2))
55+
_scale(i, j) = ifelse(i == j, 1, ifelse(i > j, 0, 2))
5656
M .*= _scale.(1:size(M, 1), transpose(1:size(M, 1)))
57-
view(M, lowertriangularind(M)) .= zero(eltype(M))
5857
mul!(ΔR₁₁, M, R₁₁)
5958
mul!(ΔQ₁, Q₁, M, -1, 1)
6059
mul!(ΔR₁₂, mul!(Q₁ᴴΔQ₁, Q₁', ΔQ₁), R₁₂, -1, 1)

0 commit comments

Comments
 (0)