Skip to content

Commit 085ba9d

Browse files
committed
Fix tests
1 parent f49b8d8 commit 085ba9d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/default.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function defaultalg(A, b, assump::OperatorAssumptions{Bool})
176176
(__conditioning(assump) === OperatorCondition.IllConditioned ||
177177
__conditioning(assump) === OperatorCondition.WellConditioned)
178178
if length(b) <= 10
179-
DefaultAlgorithmChoice.GenericLUFactorization
179+
DefaultAlgorithmChoice.RFLUFactorization
180180
elseif appleaccelerate_isavailable()
181181
DefaultAlgorithmChoice.AppleAccelerateLUFactorization
182182
elseif (length(b) <= 100 || (isopenblas() && length(b) <= 500) ||

src/factorization.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,8 +1016,7 @@ function init_cacheval(alg::NormalCholeskyFactorization, A, b, u, Pl, Pr,
10161016
maxiters::Int, abstol, reltol, verbose::Bool,
10171017
assumptions::OperatorAssumptions)
10181018
A_ = convert(AbstractMatrix, A)
1019-
MType = ArrayInterface.parameterless_type(A_)
1020-
return ArrayInterface.cholesky_instance(Symmetric(MType{eltype(A), 2}(undef,0,0)), alg.pivot)
1019+
return ArrayInterface.cholesky_instance(Symmetric(Matrix{eltype(A)}(undef,0,0)), alg.pivot)
10211020
end
10221021

10231022
const PREALLOCATED_NORMALCHOLESKY_SYMMETRIC = ArrayInterface.cholesky_instance(

test/default_algs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using LinearSolve, LinearAlgebra, SparseArrays, Test, JET
22
@test LinearSolve.defaultalg(nothing, zeros(3)).alg ===
3-
LinearSolve.DefaultAlgorithmChoice.GenericLUFactorization
3+
LinearSolve.DefaultAlgorithmChoice.RFLUFactorization
44
prob = LinearProblem(rand(3, 3), rand(3))
55
solve(prob)
66

0 commit comments

Comments
 (0)