@@ -1559,10 +1559,10 @@ end
1559
1559
(\ )(L:: Factor{T} , B:: Dense{T} ) where {T<: VTypes } = solve (CHOLMOD_A, L, B)
1560
1560
# Explicit typevars are necessary to avoid ambiguities with defs in linalg/factorizations.jl
1561
1561
# Likewise the two following explicit Vector and Matrix defs (rather than a single VecOrMat)
1562
- (\ )(L:: Factor{T } , B:: Vector{Complex{T }} ) where {T <: Float64 } = complex .(L\ real (B), L\ imag (B))
1563
- (\ )(L:: Factor{T } , B:: Matrix{Complex{T }} ) where {T <: Float64 } = complex .(L\ real (B), L\ imag (B))
1564
- (\ )(L:: Factor{T } , B:: Adjoint{<:Any, <: Matrix{Complex{T }}} ) where {T <: Float64 } = complex .(L\ real (B), L\ imag (B))
1565
- (\ )(L:: Factor{T } , B:: Transpose{<:Any, <: Matrix{Complex{T }}} ) where {T <: Float64 } = complex .(L\ real (B), L\ imag (B))
1562
+ (\ )(L:: Factor{Float64 } , B:: Vector{Complex{Float64 }} ) = complex .(L\ real (B), L\ imag (B))
1563
+ (\ )(L:: Factor{Float64 } , B:: Matrix{Complex{Float64 }} ) = complex .(L\ real (B), L\ imag (B))
1564
+ (\ )(L:: Factor{Float64 } , B:: Adjoint{<:Any,Matrix{Complex{Float64 }}} ) = complex .(L\ real (B), L\ imag (B))
1565
+ (\ )(L:: Factor{Float64 } , B:: Transpose{<:Any,Matrix{Complex{Float64 }}} ) = complex .(L\ real (B), L\ imag (B))
1566
1566
1567
1567
(\ )(L:: Factor{T} , b:: StridedVector ) where {T<: VTypes } = Vector (L\ Dense {T} (b))
1568
1568
(\ )(L:: Factor{T} , B:: StridedMatrix ) where {T<: VTypes } = Matrix (L\ Dense {T} (B))
@@ -1580,6 +1580,10 @@ end
1580
1580
\ (adjL:: AdjType{<:Any,<:Factor} , B:: Sparse ) = (L = adjL. parent; spsolve (CHOLMOD_A, L, B))
1581
1581
\ (adjL:: AdjType{<:Any,<:Factor} , B:: SparseVecOrMat ) = (L = adjL. parent; \ (adjoint (L), Sparse (B)))
1582
1582
1583
+ (\ )(adjL:: AdjType{Float64,Factor{Float64}} , B:: Vector{Complex{Float64}} ) = complex .(adjL\ real (B), adjL\ imag (B))
1584
+ (\ )(adjL:: AdjType{Float64,Factor{Float64}} , B:: Matrix{Complex{Float64}} ) = complex .(adjL\ real (B), adjL\ imag (B))
1585
+ (\ )(adjL:: AdjType{Float64,Factor{Float64}} , B:: Adjoint{<:Any,Matrix{Complex{Float64}}} ) = complex .(adjL\ real (B), adjL\ imag (B))
1586
+ (\ )(adjL:: AdjType{Float64,Factor{Float64}} , B:: Transpose{<:Any,Matrix{Complex{Float64}}} ) = complex .(adjL\ real (B), adjL\ imag (B))
1583
1587
function \ (adjL:: AdjType{<:Any,<:Factor} , b:: StridedVector )
1584
1588
L = adjL. parent
1585
1589
return Vector (solve (CHOLMOD_A, L, Dense (b)))
0 commit comments