Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Mar 3, 2024
1 parent 28ee4bb commit 9b0eaee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,9 @@ function Base.:*(
)
c = LinearAlgebra.sym_uplo(A.uplo)
B = c == :U ? _mult_upper(x, A) : _mult_lower(x, A)
return LinearAlgebra.Hermitian(B, c)
# Intermediate conversion to `Matrix` is needed to work around
# https://github.com/JuliaLang/julia/issues/52895
return LinearAlgebra.Hermitian(Matrix(LinearAlgebra.Hermitian(B, c)), c)
end

function Base.:*(
Expand Down
1 change: 1 addition & 0 deletions test/test_complex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ function test_mul_real_hermitian()
@test isequal_canonical(f * B, LinearAlgebra.Hermitian(f * A, s))
@test B * f isa LinearAlgebra.Hermitian
@test isequal_canonical(B * f, LinearAlgebra.Hermitian(A * f, s))
@test isequal_canonical(f * B + f * B, (2 * f) * B)
end
return
end
Expand Down

0 comments on commit 9b0eaee

Please sign in to comment.