Skip to content

Commit f23c860

Browse files
a few moves
1 parent b0f1ddc commit f23c860

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ext/LinearSolveSparseArraysExt.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ function LinearSolve.init_cacheval(alg::RFLUFactorization,
2727
nothing, nothing
2828
end
2929

30-
function LinearSolve.init_cacheval(
31-
alg::QRFactorization, A::Symmetric{<:Number, <:SparseMatrixCSC}, b, u, Pl, Pr,
32-
maxiters::Int, abstol, reltol, verbose::Bool,
33-
assumptions::OperatorAssumptions)
34-
return nothing
35-
end
36-
3730
function LinearSolve.handle_sparsematrixcsc_lu(A::AbstractSparseMatrixCSC)
3831
lu(SparseMatrixCSC(size(A)..., getcolptr(A), rowvals(A), nonzeros(A)),
3932
check = false)
@@ -263,7 +256,7 @@ end
263256

264257
# SPQR Handling
265258
function LinearSolve.init_cacheval(
266-
alg::Union{QRFactorization}, A::AbstractSparseArray{<:Number, <:Integer}, b, u,
259+
alg::QRFactorization, A::AbstractSparseArray{<:Number, <:Integer}, b, u,
267260
Pl, Pr,
268261
maxiters::Int, abstol, reltol,
269262
verbose::Bool, assumptions::OperatorAssumptions)
@@ -276,6 +269,13 @@ function init_cacheval(alg::QRFactorization, A::SparseMatrixCSC{Float64, Int}, b
276269
ArrayInterface.qr_instance(convert(AbstractMatrix, A), alg.pivot)
277270
end
278271

272+
function LinearSolve.init_cacheval(
273+
alg::QRFactorization, A::Symmetric{<:Number, <:SparseMatrixCSC}, b, u, Pl, Pr,
274+
maxiters::Int, abstol, reltol, verbose::Bool,
275+
assumptions::OperatorAssumptions)
276+
return nothing
277+
end
278+
279279
LinearSolve.PrecompileTools.@compile_workload begin
280280
A = sprand(4, 4, 0.3) + I
281281
b = rand(4)

0 commit comments

Comments
 (0)