@@ -72,18 +72,14 @@ default_lq_algorithm(A; kwargs...) = default_lq_algorithm(typeof(A); kwargs...)
7272
7373default_lq_algorithm (T:: Type ; kwargs... ) =
7474 throw (MethodError (default_lq_algorithm, (T,)))
75- end
7675default_lq_algorithm (:: Type{T} ; kwargs... ) where {T <: AbstractMatrix } =
7776 Householder (; kwargs... )
78- function default_lq_algorithm (:: Type{T} ; kwargs... ) where {T <: Diagonal }
79- return DiagonalAlgorithm (; kwargs... )
80- end
81- function default_lq_algorithm (:: Type{<:Base.ReshapedArray{T, N, A}} ) where {T, N, A}
82- return default_lq_algorithm (A)
83- end
84- function default_lq_algorithm (:: Type{SubArray{T, N, A}} ) where {T, N, A}
85- return default_lq_algorithm (A)
86- end
77+ default_lq_algorithm (:: Type{T} ; kwargs... ) where {T <: Diagonal } =
78+ DiagonalAlgorithm (; kwargs... )
79+ default_lq_algorithm (:: Type{<:Base.ReshapedArray{T, N, A}} ) where {T, N, A} =
80+ default_lq_algorithm (A)
81+ default_lq_algorithm (:: Type{SubArray{T, N, A}} ) where {T, N, A} =
82+ default_lq_algorithm (A)
8783
8884for f in (:lq_full! , :lq_compact! , :lq_null! )
8985 @eval function default_algorithm (:: typeof ($ f), :: Type{A} ; kwargs... ) where {A}
0 commit comments