Skip to content

Commit 3c9f39e

Browse files
committed
fix typos
1 parent 04177fc commit 3c9f39e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/pullbacks/eigh.jl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function check_and_prepare_eigh_cotangents(
77
# Only the columns ind₀ of VᴴΔV and VᴴΔAV are computed; their rows ind follow by antihermiticity
88
n, p = size(V)
99
ind₀ = select_indices(axes(D, 1), ind)
10-
k = length(ind′)
10+
k = length(ind₀)
1111
if !iszerotangent(ΔV)
1212
n == size(ΔV, 1) || throw(DimensionMismatch())
1313
k == size(ΔV, 2) || throw(DimensionMismatch())
@@ -17,7 +17,7 @@ function check_and_prepare_eigh_cotangents(
1717
else
1818
ΔV₊ = mul!(copy(ΔV), V, VᴴΔV₀, -1, 1)
1919
end
20-
aVᴴΔV₀ = antihermitian_columns!(VᴴΔV₀, ind′)
20+
aVᴴΔV₀ = antihermitian_columns!(VᴴΔV₀, ind₀)
2121
else
2222
ΔV₊ = nothing
2323
aVᴴΔV₀ = zero!(similar(V, (p, k)))
@@ -36,7 +36,7 @@ function check_and_prepare_eigh_cotangents(
3636
if !iszerotangent(ΔDmat)
3737
ΔD = diagview(ΔDmat)
3838
k == length(ΔD) || throw(DimensionMismatch())
39-
diagview(view(VᴴAΔV₀, ind₀, :)) .+= real.(ΔD)
39+
diagview(view(VᴴΔAV₀, ind₀, :)) .+= real.(ΔD)
4040
else
4141
ΔD = nothing
4242
end

‎src/pullbacks/svd.jl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function check_and_prepare_svd_cotangents(
4343
end
4444
UᴴΔU₁₀ = U₁' * ΔU₀
4545
ΔU₊ = mul!(ΔU₀, U₁, UᴴΔU₁₀, -1, 1)
46-
aUᴴΔU₁₀ = antihermitian_columns!(U₁ᴴΔU₀, ind₀)
46+
aUᴴΔU₁₀ = antihermitian_columns!(UᴴΔU₁₀, ind₀)
4747
Δgauge = max(Δgauge, ΔgaugeU)
4848
else
4949
ΔU₊ = nothing

0 commit comments

Comments
 (0)