@@ -236,10 +236,11 @@ Get the tuned algorithm preference for the given element type and matrix size.
236236Returns `nothing` if no preference exists. Uses preloaded constants for efficiency.
237237Fast path when no preferences are set.
238238"""
239- @inline function get_tuned_algorithm (:: Type{eltype_A} , :: Type{eltype_b} , matrix_size:: Integer ) where {eltype_A, eltype_b}
239+ @inline function get_tuned_algorithm (
240+ :: Type{eltype_A} , :: Type{eltype_b} , matrix_size:: Integer ) where {eltype_A, eltype_b}
240241 # Determine the element type to use for preference lookup
241242 target_eltype = eltype_A != = Nothing ? eltype_A : eltype_b
242-
243+
243244 # Determine size category based on matrix size (matching LinearSolveAutotune categories)
244245 size_category = if matrix_size <= 20
245246 :tiny
@@ -252,10 +253,10 @@ Fast path when no preferences are set.
252253 else
253254 :big
254255 end
255-
256+
256257 # Fast path: if no preferences are set, return nothing immediately
257258 AUTOTUNE_PREFS_SET || return nothing
258-
259+
259260 # Look up the tuned algorithm from preloaded constants with type specialization
260261 return _get_tuned_algorithm_impl (target_eltype, size_category)
261262end
@@ -283,11 +284,10 @@ end
283284
284285@inline _get_tuned_algorithm_impl (:: Type , :: Symbol ) = nothing # Fallback for other types
285286
286-
287-
288287# Convenience method for when A is nothing - delegate to main implementation
289- @inline get_tuned_algorithm (:: Type{Nothing} , :: Type{eltype_b} , matrix_size:: Integer ) where {eltype_b} =
290- get_tuned_algorithm (eltype_b, eltype_b, matrix_size)
288+ @inline get_tuned_algorithm (:: Type{Nothing} ,
289+ :: Type{eltype_b} ,
290+ matrix_size:: Integer ) where {eltype_b} = get_tuned_algorithm (eltype_b, eltype_b, matrix_size)
291291
292292# Allows A === nothing as a stand-in for dense matrix
293293function defaultalg (A, b, assump:: OperatorAssumptions{Bool} )
@@ -301,7 +301,7 @@ function defaultalg(A, b, assump::OperatorAssumptions{Bool})
301301 ArrayInterface. can_setindex (b) &&
302302 (__conditioning (assump) === OperatorCondition. IllConditioned ||
303303 __conditioning (assump) === OperatorCondition. WellConditioned)
304-
304+
305305 # Small matrix override - always use GenericLUFactorization for tiny problems
306306 if length (b) <= 10
307307 DefaultAlgorithmChoice. GenericLUFactorization
@@ -310,7 +310,7 @@ function defaultalg(A, b, assump::OperatorAssumptions{Bool})
310310 matrix_size = length (b)
311311 eltype_A = A === nothing ? Nothing : eltype (A)
312312 tuned_alg = get_tuned_algorithm (eltype_A, eltype (b), matrix_size)
313-
313+
314314 if tuned_alg != = nothing
315315 tuned_alg
316316 elseif appleaccelerate_isavailable () && b isa Array &&
0 commit comments