From 730f59cd30494fe2634fafda49226902f9800a11 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Tue, 3 Oct 2023 22:06:42 +0200 Subject: [PATCH] use the generic LU factorization for very small LU --- src/default.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/default.jl b/src/default.jl index c7e5661b6..c8f6d7b74 100644 --- a/src/default.jl +++ b/src/default.jl @@ -158,10 +158,10 @@ function defaultalg(A, b, assump::OperatorAssumptions) ArrayInterface.can_setindex(b) && (__conditioning(assump) === OperatorCondition.IllConditioned || __conditioning(assump) === OperatorCondition.WellConditioned) - if appleaccelerate_isavailable() - DefaultAlgorithmChoice.AppleAccelerateLUFactorization - elseif length(b) <= 10 + if length(b) <= 10 DefaultAlgorithmChoice.GenericLUFactorization + elseif appleaccelerate_isavailable() + DefaultAlgorithmChoice.AppleAccelerateLUFactorization elseif (length(b) <= 100 || (isopenblas() && length(b) <= 500)) && (A === nothing ? eltype(b) <: Union{Float32, Float64} : eltype(A) <: Union{Float32, Float64})