Skip to content

Commit 6f1007d

Browse files
Merge pull request #295 from thomvet/main
Attempt to close #293
2 parents a0bee73 + 31b6630 commit 6f1007d

File tree

3 files changed

+2
-23
lines changed

3 files changed

+2
-23
lines changed

src/factorization.jl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -310,17 +310,6 @@ end
310310

311311
# Fallback, tries to make nonsingular and just factorizes
312312
# Try to never use it.
313-
function init_cacheval(alg::GenericFactorization,
314-
A, b, u, Pl, Pr, maxiters::Int, abstol, reltol, verbose::Bool,
315-
assumptions::OperatorAssumptions)
316-
newA = copy(convert(AbstractMatrix, A))
317-
if newA isa AbstractSparseMatrix
318-
fill!(nonzeros(newA), true)
319-
else
320-
fill!(newA, true)
321-
end
322-
do_factorization(alg, newA, b, u)
323-
end
324313

325314
# Cholesky needs the posdef matrix, for GenericFactorization assume structure is needed
326315
function init_cacheval(alg::Union{GenericFactorization,
@@ -333,15 +322,6 @@ function init_cacheval(alg::Union{GenericFactorization,
333322
end
334323

335324
# Ambiguity handling dispatch
336-
function init_cacheval(alg::Union{GenericFactorization,
337-
GenericFactorization{typeof(cholesky)},
338-
GenericFactorization{typeof(cholesky!)}},
339-
A::StridedMatrix{<:LinearAlgebra.BlasFloat}, b, u, Pl, Pr,
340-
maxiters::Int,
341-
abstol, reltol, verbose::Bool, assumptions::OperatorAssumptions)
342-
newA = copy(convert(AbstractMatrix, A))
343-
do_factorization(alg, newA, b, u)
344-
end
345325

346326
################################## Factorizations which require solve overloads
347327

test/basictests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function test_interface(alg, prob1, prob2)
3939
sol = solve(cache; cache_kwargs...)
4040
@test A2 * sol.u b1
4141

42+
cache = LinearSolve.set_A(cache, A2)
4243
cache = LinearSolve.set_b(cache, b2)
4344
sol = solve(cache; cache_kwargs...)
4445
@test A2 * sol.u b2
@@ -208,7 +209,7 @@ end
208209
qr, qr!,
209210
cholesky,
210211
#cholesky!,
211-
# ldlt, ldlt!,
212+
#ldlt, ldlt!,
212213
bunchkaufman, bunchkaufman!,
213214
lq, lq!,
214215
svd, svd!,

test/runtests.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ function activate_subpkg_env(subpkg)
1818
Pkg.instantiate()
1919
end
2020

21-
@show GROUP, GROUP == "LinearSolvePardiso"
22-
2321
if GROUP == "All" || GROUP == "Core"
2422
@time @safetestset "Basic Tests" begin include("basictests.jl") end
2523
@time @safetestset "Zero Initialization Tests" begin include("zeroinittests.jl") end

0 commit comments

Comments
 (0)