Skip to content

Commit 6fd247c

Browse files
committed
Restrict to Float64
1 parent 8e5e41e commit 6fd247c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/default.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ function defaultalg(A, b, assump::OperatorAssumptions{Bool})
159159
(__conditioning(assump) === OperatorCondition.IllConditioned ||
160160
__conditioning(assump) === OperatorCondition.WellConditioned)
161161
if length(b) <= 10
162-
# DefaultAlgorithmChoice.GenericLUFactorization
163-
DefaultAlgorithmChoice.RFLUFactorization
162+
DefaultAlgorithmChoice.GenericLUFactorization
164163
elseif appleaccelerate_isavailable()
165164
DefaultAlgorithmChoice.AppleAccelerateLUFactorization
166165
elseif (length(b) <= 100 || (isopenblas() && length(b) <= 500) ||

src/factorization.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,12 +1020,12 @@ function init_cacheval(alg::NormalCholeskyFactorization, A, b, u, Pl, Pr,
10201020
return ArrayInterface.cholesky_instance(Symmetric(MType{eltype(A), 2}(undef,0,0)), alg.pivot)
10211021
end
10221022

1023-
const PREALLOCATED_NORMALCHOLESKY = ArrayInterface.cholesky_instance(
1023+
const PREALLOCATED_NORMALCHOLESKY_SYMMETRIC = ArrayInterface.cholesky_instance(
10241024
Symmetric(rand(1, 1)), NoPivot())
10251025

1026-
function init_cacheval(alg::NormalCholeskyFactorization, A::Matrix, b, u, Pl, Pr,
1026+
function init_cacheval(alg::NormalCholeskyFactorization, A::Matrix{Float64}, b, u, Pl, Pr,
10271027
maxiters::Int, abstol, reltol, verbose::Bool, assumptions::OperatorAssumptions)
1028-
return PREALLOCATED_NORMALCHOLESKY
1028+
return PREALLOCATED_NORMALCHOLESKY_SYMMETRIC
10291029
end
10301030

10311031
function init_cacheval(alg::NormalCholeskyFactorization,

0 commit comments

Comments
 (0)