Skip to content

Commit 7eb419b

Browse files
committed
Use eltype(b) if A === nothing
1 parent fa64510 commit 7eb419b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/default.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ function defaultalg(A, b, ::OperatorAssumptions{true})
131131
if length(b) <= 10
132132
alg = GenericLUFactorization()
133133
elseif (length(b) <= 100 || (isopenblas() && length(b) <= 500)) &&
134-
eltype(A) <: Union{Float32, Float64}
134+
(A === nothing ? eltype(b) <: Union{Float32, Float64} :
135+
eltype(A) <: Union{Float32, Float64})
135136
alg = RFLUFactorization()
136137
#elseif A === nothing || A isa Matrix
137138
# alg = FastLUFactorization()

0 commit comments

Comments
 (0)