File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,14 @@ SciMLBase.solve(cache) = solve(cache, cache.alg)
7474struct LUFactorization{P} <: AbstractLinearAlgorithm
7575 pivot:: P
7676end
77- LUFactorization () = LUFactorization (Val (true ))
77+ function LUFactorization ()
78+ pivot = @static if VERSION < v " 1.7beta"
79+ Val (true )
80+ else
81+ RowMaximum ()
82+ end
83+ LUFactorization (pivot)
84+ end
7885
7986function SciMLBase. solve (cache:: LinearCache , alg:: LUFactorization )
8087 cache. A isa Union{AbstractMatrix, AbstractDiffEqOperator} || error (" LU is not defined for $(typeof (prob. A)) " )
@@ -86,7 +93,14 @@ struct QRFactorization{P} <: AbstractLinearAlgorithm
8693 pivot:: P
8794 blocksize:: Int
8895end
89- QRFactorization () = QRFactorization (NoPivot (), 16 )
96+ function QRFactorization ()
97+ pivot = @static if VERSION < v " 1.7beta"
98+ Val (false )
99+ else
100+ NoPivot ()
101+ end
102+ QRFactorization (pivot, 16 )
103+ end
90104
91105function SciMLBase. solve (cache:: LinearCache , alg:: QRFactorization )
92106 cache. A isa Union{AbstractMatrix, AbstractDiffEqOperator} || error (" QR is not defined for $(typeof (prob. A)) " )
You can’t perform that action at this time.
0 commit comments