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)
74
74
struct LUFactorization{P} <: AbstractLinearAlgorithm
75
75
pivot:: P
76
76
end
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
78
85
79
86
function SciMLBase. solve (cache:: LinearCache , alg:: LUFactorization )
80
87
cache. A isa Union{AbstractMatrix, AbstractDiffEqOperator} || error (" LU is not defined for $(typeof (prob. A)) " )
@@ -86,7 +93,14 @@ struct QRFactorization{P} <: AbstractLinearAlgorithm
86
93
pivot:: P
87
94
blocksize:: Int
88
95
end
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
90
104
91
105
function SciMLBase. solve (cache:: LinearCache , alg:: QRFactorization )
92
106
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