Skip to content

Commit 65e36fb

Browse files
committed
Nix ambiguity between \ methods.
1 parent 4521e6b commit 65e36fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/sparse/cholmod.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,6 +1603,9 @@ Ac_ldiv_B(L::FactorComponent, B::RowVector) = ctranspose(L)\B # ambiguity
16031603
# linalg/factorizations.jl
16041604
(\){T<:VTypes}(L::Factor{T}, b::StridedVector) = Vector(L\convert(Dense{T}, b))
16051605
(\){T<:VTypes}(L::Factor{T}, B::StridedMatrix) = Matrix(L\convert(Dense{T}, B))
1606+
# nix ambiguities with (\){T<:BlasReal}(F::Factorization{T}, V::VecOrMat{Complex{T}})
1607+
(\){T<:Float64}(L::Factor{T}, B::Vector{Complex{T}}) = Vector(L\convert(Dense{T}, B))
1608+
(\){T<:Float64}(L::Factor{T}, B::Matrix{Complex{T}}) = Matrix(L\convert(Dense{T}, B))
16061609
(\)(L::Factor, B::Sparse) = spsolve(CHOLMOD_A, L, B)
16071610
# When right hand side is sparse, we have to ensure that the rhs is not marked as symmetric.
16081611
(\)(L::Factor, B::SparseVecOrMat) = sparse(spsolve(CHOLMOD_A, L, Sparse(B, 0)))

0 commit comments

Comments
 (0)