From 97cf4ce3b49b7bde5cca8d0c3c433808024a3b15 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Sun, 3 Mar 2024 12:09:31 +1300 Subject: [PATCH] Update src/dispatch.jl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mateus Araújo --- src/dispatch.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dispatch.jl b/src/dispatch.jl index ed93796..4499da2 100644 --- a/src/dispatch.jl +++ b/src/dispatch.jl @@ -499,6 +499,14 @@ function Base.:*(α::AbstractMutable, A::LinearAlgebra.Symmetric) return LinearAlgebra.Symmetric(B, c) end +function Base.:*( + A::LinearAlgebra.Symmetric{<:AbstractMutable}, + α::AbstractMutable, +) + return α * A +end + +Base.:*(A::LinearAlgebra.Symmetric, α::AbstractMutable) = α * A function Base.:*(α::Real, A::LinearAlgebra.Hermitian{<:AbstractMutable}) c = LinearAlgebra.sym_uplo(A.uplo) B = c == :U ? _mult_upper(α, A) : _mult_lower(α, A)