@@ -171,15 +171,24 @@ end
171
171
function init_cacheval (alg:: QRFactorization , A, b, u, Pl, Pr,
172
172
maxiters:: Int , abstol, reltol, verbose:: Bool ,
173
173
assumptions:: OperatorAssumptions )
174
- ArrayInterface. qr_instance (convert (AbstractMatrix, A))
174
+ ArrayInterface. qr_instance (convert (AbstractMatrix, A), alg . pivot )
175
175
end
176
176
177
177
const PREALLOCATED_QR = ArrayInterface. qr_instance (rand (1 , 1 ))
178
178
179
- function init_cacheval (alg:: QRFactorization , A:: Matrix{Float64} , b, u, Pl, Pr,
180
- maxiters:: Int , abstol, reltol, verbose:: Bool ,
181
- assumptions:: OperatorAssumptions )
182
- PREALLOCATED_QR
179
+ @static if VERSION < v " 1.7beta"
180
+ function init_cacheval (alg:: QRFactorization{Val{false}} , A:: Matrix{Float64} , b, u, Pl,
181
+ Pr,
182
+ maxiters:: Int , abstol, reltol, verbose:: Bool ,
183
+ assumptions:: OperatorAssumptions )
184
+ PREALLOCATED_QR
185
+ end
186
+ else
187
+ function init_cacheval (alg:: QRFactorization{NoPivot} , A:: Matrix{Float64} , b, u, Pl, Pr,
188
+ maxiters:: Int , abstol, reltol, verbose:: Bool ,
189
+ assumptions:: OperatorAssumptions )
190
+ PREALLOCATED_QR
191
+ end
183
192
end
184
193
185
194
function init_cacheval (alg:: QRFactorization , A:: AbstractSciMLOperator , b, u, Pl, Pr,
0 commit comments