Skip to content

Commit

Permalink
use the generic LU factorization for very small LU
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Oct 3, 2023
1 parent 972c1bc commit 730f59c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/default.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 730f59c

Please sign in to comment.