Skip to content

Commit 6848da3

Browse files
committed
change to syrk convention
1 parent fb5b57f commit 6848da3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/implementations/polar.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function left_polar!(A::AbstractMatrix, WP, alg::PolarViaSVD)
5353
if !isempty(P)
5454
S .= sqrt.(S)
5555
SsqrtVᴴ = lmul!(S, Vᴴ)
56-
P = _mul_herm!(P, SsqrtVᴴ)
56+
P = _mul_herm!(P, SsqrtVᴴ')
5757
end
5858
return (W, P)
5959
end
@@ -65,7 +65,7 @@ function right_polar!(A::AbstractMatrix, PWᴴ, alg::PolarViaSVD)
6565
if !isempty(P)
6666
S .= sqrt.(S)
6767
USsqrt = rmul!(U, S)
68-
P = _mul_herm!(P, USsqrt')
68+
P = _mul_herm!(P, USsqrt)
6969
end
7070
return (P, Wᴴ)
7171
end
@@ -74,12 +74,12 @@ end
7474
# For BLAS calls that dispatch to `syrk` or `herk` this works automatically
7575
# for GPU this currently does not seem to be guaranteed so we manually project
7676
function _mul_herm!(C, A)
77-
mul!(C, A', A)
77+
mul!(C, A, A')
7878
project_hermitian!(C)
7979
return C
8080
end
8181
function _mul_herm!(C::YALAPACK.BlasMat{T}, A::YALAPACK.BlasMat{T}) where {T}
82-
mul!(C, A', A)
82+
mul!(C, A, A')
8383
return C
8484
end
8585

0 commit comments

Comments
 (0)