Skip to content

Commit e22af66

Browse files
committed
fix polar pullback
1 parent 42a5565 commit e22af66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pullbacks/polar.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function left_polar_pullback!(ΔA::AbstractMatrix, A, WP, ΔWP)
1111
# Extract and check the cotangents
1212
ΔW, ΔP = ΔWP
1313
if !iszerotangent(ΔP)
14-
ΔP = hermitianpart(ΔP)
14+
ΔP = project_hermitian(ΔP)
1515
end
1616
M = zero(P)
1717
!iszerotangent(ΔW) && mul!(M, W', ΔW, 1, 1)
@@ -41,7 +41,7 @@ function right_polar_pullback!(ΔA::AbstractMatrix, A, PWᴴ, ΔPWᴴ)
4141
# Extract and check the cotangents
4242
ΔP, ΔWᴴ = ΔPWᴴ
4343
if !iszerotangent(ΔP)
44-
ΔP = hermitianpart(ΔP)
44+
ΔP = project_hermitian(ΔP)
4545
end
4646
M = zero(P)
4747
!iszerotangent(ΔWᴴ) && mul!(M, ΔWᴴ, Wᴴ', 1, 1)

0 commit comments

Comments
 (0)