Skip to content

Commit

Permalink
Fix product of Complex with Hermitian
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Feb 29, 2024
1 parent ccaa222 commit e8aedaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ function Base.:*(α::Number, A::LinearAlgebra.Symmetric{<:AbstractMutable})
return LinearAlgebra.Symmetric(B, c)
end

function Base.:*::Number, A::LinearAlgebra.Hermitian{<:AbstractMutable})
function Base.:*::Real, A::LinearAlgebra.Hermitian{<:AbstractMutable})
c = LinearAlgebra.sym_uplo(A.uplo)
B = c == :U ? _mult_upper(α, A) : _mult_lower(α, A)
return LinearAlgebra.Hermitian(B, c)
Expand Down

0 comments on commit e8aedaa

Please sign in to comment.