@@ -2,6 +2,7 @@ module LinearSolveFastLapackInterfaceExt
22
33using LinearSolve, LinearAlgebra
44using FastLapackInterface
5+ using LinearSolve: AbstractOperatorAssumptions
56
67struct WorkspaceAndFactors{W, F}
78 workspace:: W
1011
1112function LinearSolve. init_cacheval (:: FastLUFactorization , A, b, u, Pl, Pr,
1213 maxiters:: Int , abstol, reltol, verbose:: Bool ,
13- assumptions:: OperatorAssumptions )
14+ assumptions:: AbstractOperatorAssumptions )
1415 ws = LUWs (A)
1516 return WorkspaceAndFactors (
1617 ws, LinearSolve. ArrayInterface. lu_instance (convert (AbstractMatrix, A)))
3738function LinearSolve. init_cacheval (
3839 alg:: FastQRFactorization{NoPivot} , A:: AbstractMatrix , b, u, Pl, Pr,
3940 maxiters:: Int , abstol, reltol, verbose:: Bool ,
40- assumptions:: OperatorAssumptions )
41+ assumptions:: AbstractOperatorAssumptions )
4142 ws = QRWYWs (A; blocksize = alg. blocksize)
4243 return WorkspaceAndFactors (ws,
4344 LinearSolve. ArrayInterface. qr_instance (convert (AbstractMatrix, A)))
4445end
4546function LinearSolve. init_cacheval (
4647 :: FastQRFactorization{ColumnNorm} , A:: AbstractMatrix , b, u, Pl, Pr,
4748 maxiters:: Int , abstol, reltol, verbose:: Bool ,
48- assumptions:: OperatorAssumptions )
49+ assumptions:: AbstractOperatorAssumptions )
4950 ws = QRpWs (A)
5051 return WorkspaceAndFactors (ws,
5152 LinearSolve. ArrayInterface. qr_instance (convert (AbstractMatrix, A)))
5253end
5354
5455function LinearSolve. init_cacheval (alg:: FastQRFactorization , A, b, u, Pl, Pr,
5556 maxiters:: Int , abstol, reltol, verbose:: Bool ,
56- assumptions:: OperatorAssumptions )
57+ assumptions:: AbstractOperatorAssumptions )
5758 return init_cacheval (alg, convert (AbstractMatrix, A), b, u, Pl, Pr,
5859 maxiters:: Int , abstol, reltol, verbose:: Bool ,
59- assumptions:: OperatorAssumptions )
60+ assumptions:: AbstractOperatorAssumptions )
6061end
6162
6263function SciMLBase. solve! (cache:: LinearSolve.LinearCache , alg:: FastQRFactorization{P} ;
0 commit comments