Skip to content

Commit

Permalink
Update src/dispatch.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Mateus Araújo <[email protected]>
  • Loading branch information
odow and araujoms authored Mar 2, 2024
1 parent a0f2d0d commit 97cf4ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dispatch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,14 @@ function Base.:*(α::AbstractMutable, A::LinearAlgebra.Symmetric)
return LinearAlgebra.Symmetric(B, c)
end

function Base.:*(

Check warning on line 502 in src/dispatch.jl

View check run for this annotation

Codecov / codecov/patch

src/dispatch.jl#L502

Added line #L502 was not covered by tests
A::LinearAlgebra.Symmetric{<:AbstractMutable},
α::AbstractMutable,
)
return α * A

Check warning on line 506 in src/dispatch.jl

View check run for this annotation

Codecov / codecov/patch

src/dispatch.jl#L506

Added line #L506 was not covered by tests
end

Base.:*(A::LinearAlgebra.Symmetric, α::AbstractMutable) = α * A

Check warning on line 509 in src/dispatch.jl

View check run for this annotation

Codecov / codecov/patch

src/dispatch.jl#L509

Added line #L509 was not covered by tests
function Base.:*::Real, A::LinearAlgebra.Hermitian{<:AbstractMutable})
c = LinearAlgebra.sym_uplo(A.uplo)
B = c == :U ? _mult_upper(α, A) : _mult_lower(α, A)
Expand Down

0 comments on commit 97cf4ce

Please sign in to comment.