From 352aa8fee5f43b67e948f7ded80975be1b8818cc Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Mon, 21 Nov 2022 07:27:05 +1300 Subject: [PATCH] dispatch.jl: remove work-arounds for Julia 1.0 (#180) --- src/dispatch.jl | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/dispatch.jl b/src/dispatch.jl index c9d41b3a..725c7b3f 100644 --- a/src/dispatch.jl +++ b/src/dispatch.jl @@ -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 .* α