Skip to content

Commit 730f59c

Browse files
use the generic LU factorization for very small LU
1 parent 972c1bc commit 730f59c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/default.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ function defaultalg(A, b, assump::OperatorAssumptions)
158158
ArrayInterface.can_setindex(b) &&
159159
(__conditioning(assump) === OperatorCondition.IllConditioned ||
160160
__conditioning(assump) === OperatorCondition.WellConditioned)
161-
if appleaccelerate_isavailable()
162-
DefaultAlgorithmChoice.AppleAccelerateLUFactorization
163-
elseif length(b) <= 10
161+
if length(b) <= 10
164162
DefaultAlgorithmChoice.GenericLUFactorization
163+
elseif appleaccelerate_isavailable()
164+
DefaultAlgorithmChoice.AppleAccelerateLUFactorization
165165
elseif (length(b) <= 100 || (isopenblas() && length(b) <= 500)) &&
166166
(A === nothing ? eltype(b) <: Union{Float32, Float64} :
167167
eltype(A) <: Union{Float32, Float64})

0 commit comments

Comments
 (0)