Skip to content

Commit ce2d62d

Browse files
authored
Split methods to avoid ambiguities (#20)
1 parent 9fa8f50 commit ce2d62d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/extendable.jl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,12 @@ $(SIGNATURES)
302302
303303
[`\\`](@ref) for Symmetric{ExtendableSparse}
304304
"""
305-
function LinearAlgebra.:\(symm_ext::Symmetric{Tm, ExtendableSparseMatrix{Tm, Ti}}, B::AbstractVecOrMat{T} where T) where{Tm,Ti}
305+
function LinearAlgebra.:\(symm_ext::Symmetric{Tm, ExtendableSparseMatrix{Tm, Ti}}, B::AbstractVector{T} where T) where{Tm,Ti}
306+
flush!(symm_ext.data)
307+
symm_csc=Symmetric(symm_ext.data.cscmatrix,Symbol(symm_ext.uplo))
308+
symm_csc\B
309+
end
310+
function LinearAlgebra.:\(symm_ext::Symmetric{Tm, ExtendableSparseMatrix{Tm, Ti}}, B::AbstractMatrix{T} where T) where{Tm,Ti}
306311
flush!(symm_ext.data)
307312
symm_csc=Symmetric(symm_ext.data.cscmatrix,Symbol(symm_ext.uplo))
308313
symm_csc\B
@@ -314,7 +319,12 @@ $(SIGNATURES)
314319
315320
[`\\`](@ref) for Hermitian{ExtendableSparse}
316321
"""
317-
function LinearAlgebra.:\(symm_ext::Hermitian{Tm, ExtendableSparseMatrix{Tm, Ti}}, B::AbstractVecOrMat{T} where T) where{Tm,Ti}
322+
function LinearAlgebra.:\(symm_ext::Hermitian{Tm, ExtendableSparseMatrix{Tm, Ti}}, B::AbstractVector{T} where T) where{Tm,Ti}
323+
flush!(symm_ext.data)
324+
symm_csc=Hermitian(symm_ext.data.cscmatrix,Symbol(symm_ext.uplo))
325+
symm_csc\B
326+
end
327+
function LinearAlgebra.:\(symm_ext::Hermitian{Tm, ExtendableSparseMatrix{Tm, Ti}}, B::AbstractMatrix{T} where T) where{Tm,Ti}
318328
flush!(symm_ext.data)
319329
symm_csc=Hermitian(symm_ext.data.cscmatrix,Symbol(symm_ext.uplo))
320330
symm_csc\B

0 commit comments

Comments
 (0)