Skip to content

Commit

Permalink
Update dispatch.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Feb 29, 2024
1 parent e8aedaa commit 211e55a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/dispatch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -490,13 +490,6 @@ function Base.:*(α::Real, A::LinearAlgebra.Hermitian{<:AbstractMutable})
return LinearAlgebra.Hermitian(B, c)
end

# Fix ambiguity identified by Aqua.jl.
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)
end

# These three have specific methods that just redirect to `Matrix{T}` which
# does not work, e.g. if `zero(T)` has a different type than `T`.

Expand Down

0 comments on commit 211e55a

Please sign in to comment.