Skip to content

Commit 895c35c

Browse files
remove extra ambiguity adding dispatches
1 parent 4d06910 commit 895c35c

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/factorization.jl

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ end
309309

310310
# Fallback, tries to make nonsingular and just factorizes
311311
# Try to never use it.
312-
function init_cacheval(alg::Union{QRFactorization, SVDFactorization, GenericFactorization},
312+
function init_cacheval(alg::GenericFactorization,
313313
A, b, u, Pl, Pr, maxiters::Int, abstol, reltol, verbose::Bool,
314314
assumptions::OperatorAssumptions)
315315
newA = copy(convert(AbstractMatrix, A))
@@ -321,20 +321,6 @@ function init_cacheval(alg::Union{QRFactorization, SVDFactorization, GenericFact
321321
do_factorization(alg, newA, b, u)
322322
end
323323

324-
# Ambiguity handling dispatch
325-
function init_cacheval(alg::Union{QRFactorization, SVDFactorization},
326-
A::StridedMatrix{<:LinearAlgebra.BlasFloat}, b, u, Pl, Pr,
327-
maxiters::Int,
328-
abstol, reltol, verbose::Bool, assumptions::OperatorAssumptions)
329-
newA = copy(convert(AbstractMatrix, A))
330-
if newA isa AbstractSparseMatrix
331-
fill!(nonzeros(newA), true)
332-
else
333-
fill!(newA, true)
334-
end
335-
do_factorization(alg, newA, b, u)
336-
end
337-
338324
# Cholesky needs the posdef matrix, for GenericFactorization assume structure is needed
339325
function init_cacheval(alg::Union{GenericFactorization,
340326
GenericFactorization{typeof(cholesky)},

0 commit comments

Comments
 (0)