@@ -171,15 +171,24 @@ end
171171function init_cacheval (alg:: QRFactorization , A, b, u, Pl, Pr,
172172 maxiters:: Int , abstol, reltol, verbose:: Bool ,
173173 assumptions:: OperatorAssumptions )
174- ArrayInterface. qr_instance (convert (AbstractMatrix, A))
174+ ArrayInterface. qr_instance (convert (AbstractMatrix, A), alg . pivot )
175175end
176176
177177const PREALLOCATED_QR = ArrayInterface. qr_instance (rand (1 , 1 ))
178178
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
183192end
184193
185194function init_cacheval (alg:: QRFactorization , A:: AbstractSciMLOperator , b, u, Pl, Pr,
0 commit comments