From 4bb0210a4e3fed2384edccee56c7de5d50e00d03 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Tue, 13 Feb 2024 16:09:41 -0500 Subject: [PATCH] Fix tests --- src/default.jl | 2 +- src/factorization.jl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/default.jl b/src/default.jl index f3e522c00..9a76403bb 100644 --- a/src/default.jl +++ b/src/default.jl @@ -176,7 +176,7 @@ function defaultalg(A, b, assump::OperatorAssumptions{Bool}) (__conditioning(assump) === OperatorCondition.IllConditioned || __conditioning(assump) === OperatorCondition.WellConditioned) if length(b) <= 10 - DefaultAlgorithmChoice.GenericLUFactorization + DefaultAlgorithmChoice.RFLUFactorization elseif appleaccelerate_isavailable() DefaultAlgorithmChoice.AppleAccelerateLUFactorization elseif (length(b) <= 100 || (isopenblas() && length(b) <= 500) || diff --git a/src/factorization.jl b/src/factorization.jl index 51431647b..1f244b3c4 100644 --- a/src/factorization.jl +++ b/src/factorization.jl @@ -1016,8 +1016,7 @@ function init_cacheval(alg::NormalCholeskyFactorization, A, b, u, Pl, Pr, maxiters::Int, abstol, reltol, verbose::Bool, assumptions::OperatorAssumptions) A_ = convert(AbstractMatrix, A) - MType = ArrayInterface.parameterless_type(A_) - return ArrayInterface.cholesky_instance(Symmetric(MType{eltype(A), 2}(undef,0,0)), alg.pivot) + return ArrayInterface.cholesky_instance(Symmetric(Matrix{eltype(A)}(undef,0,0)), alg.pivot) end const PREALLOCATED_NORMALCHOLESKY_SYMMETRIC = ArrayInterface.cholesky_instance(