@@ -80,13 +80,21 @@ function LinearSolve.init_cacheval(
80
80
end
81
81
82
82
function LinearSolve. init_cacheval (
83
- alg:: Union{LUFactorization, GenericLUFactorization} , A:: AbstractSparseArray{Float64, Int } , b, u,
83
+ alg:: Union{LUFactorization, GenericLUFactorization} , A:: AbstractSparseArray{Float64, Int64 } , b, u,
84
84
Pl, Pr,
85
85
maxiters:: Int , abstol, reltol,
86
86
verbose:: Bool , assumptions:: OperatorAssumptions )
87
87
PREALLOCATED_UMFPACK
88
88
end
89
89
90
+ function LinearSolve. init_cacheval (
91
+ alg:: Union{LUFactorization, GenericLUFactorization} , A:: AbstractSparseArray{Float64, Int32} , b, u,
92
+ Pl, Pr,
93
+ maxiters:: Int , abstol, reltol,
94
+ verbose:: Bool , assumptions:: OperatorAssumptions )
95
+ SparseArrays. UMFPACK. UmfpackLU (SparseMatrixCSC {Float64, Int32} (0 , 0 , [Int32 (1 )], Int32[], Float64[]))
96
+ end
97
+
90
98
function LinearSolve. init_cacheval (
91
99
alg:: UMFPACKFactorization , A:: AbstractSparseArray{Float64, Int} , b, u, Pl, Pr,
92
100
maxiters:: Int , abstol,
@@ -143,13 +151,21 @@ function LinearSolve.init_cacheval(
143
151
end
144
152
145
153
function LinearSolve. init_cacheval (
146
- alg:: KLUFactorization , A:: AbstractSparseArray{Float64, Int } , b, u, Pl, Pr,
154
+ alg:: KLUFactorization , A:: AbstractSparseArray{Float64, Int64 } , b, u, Pl, Pr,
147
155
maxiters:: Int , abstol,
148
156
reltol,
149
157
verbose:: Bool , assumptions:: OperatorAssumptions )
150
158
PREALLOCATED_KLU
151
159
end
152
160
161
+ function LinearSolve. init_cacheval (
162
+ alg:: KLUFactorization , A:: AbstractSparseArray{Float64, Int32} , b, u, Pl, Pr,
163
+ maxiters:: Int , abstol,
164
+ reltol,
165
+ verbose:: Bool , assumptions:: OperatorAssumptions )
166
+ KLU. KLUFactorization (SparseMatrixCSC {Float64, Int32} (0 , 0 , [Int32 (1 )], Int32[], Float64[]))
167
+ end
168
+
153
169
# TODO : guard this against errors
154
170
function SciMLBase. solve! (cache:: LinearSolve.LinearCache , alg:: KLUFactorization ; kwargs... )
155
171
A = cache. A
@@ -268,6 +284,12 @@ function LinearSolve.init_cacheval(alg::QRFactorization, A::SparseMatrixCSC{Floa
268
284
LinearSolve. ArrayInterface. qr_instance (convert (AbstractMatrix, A), alg. pivot)
269
285
end
270
286
287
+ function LinearSolve. init_cacheval (alg:: QRFactorization , A:: SparseMatrixCSC{Float64, Int32} , b, u, Pl, Pr,
288
+ maxiters:: Int , abstol, reltol, verbose:: Bool ,
289
+ assumptions:: OperatorAssumptions )
290
+ LinearSolve. ArrayInterface. qr_instance (convert (AbstractMatrix, A), alg. pivot)
291
+ end
292
+
271
293
function LinearSolve. init_cacheval (
272
294
alg:: QRFactorization , A:: Symmetric{<:Number, <:SparseMatrixCSC} , b, u, Pl, Pr,
273
295
maxiters:: Int , abstol, reltol, verbose:: Bool ,
0 commit comments