Skip to content

Commit 4eaa458

Browse files
authored
Add back explicit typevars in cholmod (#336)
1 parent ebb87a3 commit 4eaa458

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/solvers/cholmod.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,10 +1559,10 @@ end
15591559
(\)(L::Factor{T}, B::Dense{T}) where {T<:VTypes} = solve(CHOLMOD_A, L, B)
15601560
# Explicit typevars are necessary to avoid ambiguities with defs in linalg/factorizations.jl
15611561
# Likewise the two following explicit Vector and Matrix defs (rather than a single VecOrMat)
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))
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))
15661566

15671567
(\)(L::Factor{T}, b::StridedVector) where {T<:VTypes} = Vector(L\Dense{T}(b))
15681568
(\)(L::Factor{T}, B::StridedMatrix) where {T<:VTypes} = Matrix(L\Dense{T}(B))

0 commit comments

Comments
 (0)