From 12c7ed9616de1d4f63d83a6634545331ba59ec7e Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 25 Oct 2023 02:45:33 +0200 Subject: [PATCH] Update default.jl --- src/default.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/default.jl b/src/default.jl index 830770802..82166a247 100644 --- a/src/default.jl +++ b/src/default.jl @@ -327,7 +327,12 @@ function defaultalg_symbol(::Type{T}) where {T} Symbol(split(string(SciMLBase.parameterless_type(T)), ".")[end]) end defaultalg_symbol(::Type{<:GenericFactorization{typeof(ldlt!)}}) = :LDLtFactorization -defaultalg_symbol(::Type{<:QRFactorization{ColumnNorm}}) = :QRFactorizationPivoted + +@static if VERSION >= v"1.7" + defaultalg_symbol(::Type{<:QRFactorization{ColumnNorm}}) = :QRFactorizationPivoted +else + defaultalg_symbol(::Type{<:QRFactorization{Val{true}}}) = :QRFactorizationPivoted +end """ if alg.alg === DefaultAlgorithmChoice.LUFactorization