@@ -213,17 +213,20 @@ function init_cacheval(
213
213
ArrayInterface. lu_instance (convert (AbstractMatrix, A))
214
214
end
215
215
216
- function init_cacheval (alg:: Union{ LUFactorization, GenericLUFactorization} ,
216
+ function init_cacheval (alg:: LUFactorization ,
217
217
A:: Union{<:Adjoint, <:Transpose} , b, u, Pl, Pr, maxiters:: Int , abstol, reltol,
218
218
verbose:: Bool , assumptions:: OperatorAssumptions )
219
219
error_no_cudss_lu (A)
220
- if alg isa LUFactorization
221
- return lu (A; check = false )
222
- else
223
- A isa GPUArraysCore. AnyGPUArray && return nothing
224
- ipiv = Vector {LinearAlgebra.BlasInt} (undef, 0 )
225
- return LinearAlgebra. generic_lufact! (copy (A), alg. pivot; check = false )
226
- end
220
+ return lu (A; check = false )
221
+ end
222
+
223
+ function init_cacheval (alg:: GenericLUFactorization ,
224
+ A:: Union{<:Adjoint, <:Transpose} , b, u, Pl, Pr, maxiters:: Int , abstol, reltol,
225
+ verbose:: Bool , assumptions:: OperatorAssumptions )
226
+ error_no_cudss_lu (A)
227
+ A isa GPUArraysCore. AnyGPUArray && return nothing
228
+ ipiv = Vector {LinearAlgebra.BlasInt} (undef, 0 )
229
+ return LinearAlgebra. generic_lufact! (copy (A), alg. pivot; check = false ), ipiv
227
230
end
228
231
229
232
const PREALLOCATED_LU = ArrayInterface. lu_instance (rand (1 , 1 ))
0 commit comments