Skip to content

Commit f3d0000

Browse files
require kwargs for factorization
1 parent 28c3f04 commit f3d0000

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LinearSolve"
22
uuid = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae"
33
authors = ["Jonathan <[email protected]> and contributors"]
4-
version = "0.1.3"
4+
version = "0.1.4"
55

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

src/default.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ function SciMLBase.solve(cache::LinearCache, alg::Nothing,
1111
# it makes sense according to the benchmarks, which is dependent on
1212
# whether MKL or OpenBLAS is being used
1313
if A isa Matrix
14-
if ArrayInterface.can_setindex(cache.b) && (size(A,1) <= 100 ||
14+
if eltype(A) <: Union{Float32,Float64,ComplexF32,ComplexF64} &&
15+
ArrayInterface.can_setindex(cache.b) && (size(A,1) <= 100 ||
1516
(isopenblas() && size(A,1) <= 500)
1617
)
1718
alg = GenericFactorization(;fact_alg=RecursiveFactorization.lu!)

src/factorization.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function SciMLBase.solve(cache::LinearCache, alg::AbstractFactorization)
1+
function SciMLBase.solve(cache::LinearCache, alg::AbstractFactorization; kwargs...)
22
if cache.isfresh
33
fact = init_cacheval(alg, cache.A, cache.b, cache.u)
44
cache = set_cacheval(cache, fact)

0 commit comments

Comments
 (0)