Skip to content

Commit d224203

Browse files
Update src/default.jl
Co-authored-by: Fredrik Ekre <[email protected]>
1 parent a8cdd7d commit d224203

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/default.jl

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@ function defaultalg(A::SparseMatrixCSC{Tv, Ti}, b,
4949
end
5050

5151
@static if INCLUDE_SPARSE
52-
for Tv in (:Float64, :ComplexF64)
53-
@eval begin function defaultalg(A::SparseMatrixCSC{$Tv, Ti}, b,
54-
::OperatorAssumptions{true}) where {Ti}
55-
if length(b) <= 10_000
56-
KLUFactorization()
57-
else
58-
UMFPACKFactorization()
59-
end
60-
end end
52+
function defaultalg(A::SparseMatrixCSC{<:Union{Float64,ComplexF64}, Ti}, b,
53+
::OperatorAssumptions{true}) where {Ti}
54+
if length(b) <= 10_000
55+
KLUFactorization()
56+
else
57+
UMFPACKFactorization()
58+
end
6159
end
6260
end
6361

0 commit comments

Comments
 (0)