Skip to content

Commit

Permalink
dispatch.jl: remove work-arounds for Julia 1.0 (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 20, 2022
1 parent f2f2396 commit 352aa8f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/dispatch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -649,17 +649,6 @@ end
# +(::SparseMatrixCSC) is not defined for generic types in Base.
Base.:+(A::AbstractArray{<:AbstractMutable}) = A

# Fix https://github.com/JuliaLang/julia/issues/32374 as done in
# https://github.com/JuliaLang/julia/pull/32375. This hack should
# be removed once we drop Julia v1.0.
function Base.:-(A::LinearAlgebra.Symmetric{<:AbstractMutable})
return LinearAlgebra.Symmetric(-parent(A), LinearAlgebra.sym_uplo(A.uplo))
end

function Base.:-(A::LinearAlgebra.Hermitian{<:AbstractMutable})
return LinearAlgebra.Hermitian(-parent(A), LinearAlgebra.sym_uplo(A.uplo))
end

Base.:*::AbstractMutable, A::AbstractArray) = α .* A

Base.:*(A::AbstractArray, α::AbstractMutable) = A .* α
Expand Down

0 comments on commit 352aa8f

Please sign in to comment.