Skip to content

Commit 1582645

Browse files
committed
Merge branch 'main' into jf/document-precs
2 parents 350f26b + 80ee7cc commit 1582645

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LinearSolve"
22
uuid = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae"
33
authors = ["SciML"]
4-
version = "2.36.1"
4+
version = "2.36.2"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/default.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ function defaultalg(A, b, assump::OperatorAssumptions{Bool})
179179
__conditioning(assump) === OperatorCondition.WellConditioned)
180180
if length(b) <= 10
181181
DefaultAlgorithmChoice.RFLUFactorization
182-
elseif appleaccelerate_isavailable()
182+
elseif appleaccelerate_isavailable() && b isa Array &&
183+
eltype(b) <: Union{Float32, Float64, ComplexF32, ComplexF64}
183184
DefaultAlgorithmChoice.AppleAccelerateLUFactorization
184185
elseif (length(b) <= 100 || (isopenblas() && length(b) <= 500) ||
185186
(usemkl && length(b) <= 200)) &&
@@ -188,7 +189,8 @@ function defaultalg(A, b, assump::OperatorAssumptions{Bool})
188189
DefaultAlgorithmChoice.RFLUFactorization
189190
#elseif A === nothing || A isa Matrix
190191
# alg = FastLUFactorization()
191-
elseif usemkl
192+
elseif usemkl && b isa Array &&
193+
eltype(b) <: Union{Float32, Float64, ComplexF32, ComplexF64}
192194
DefaultAlgorithmChoice.MKLLUFactorization
193195
else
194196
DefaultAlgorithmChoice.LUFactorization

0 commit comments

Comments
 (0)