@@ -334,79 +334,79 @@ See also [`left_null(!)`](@ref left_null), [`left_orth(!)`](@ref left_orth) and
334334@inline select_algorithm (:: typeof (right_null!), A, alg:: Symbol ; kwargs... ) =
335335 select_algorithm (right_null!, A, Val (alg); kwargs... )
336336
337- function select_algorithm (:: typeof (left_orth!), A, :: Val{:qr} ; trunc = nothing , kwargs... )
337+ @inline function select_algorithm (:: typeof (left_orth!), A, :: Val{:qr} ; trunc = nothing , kwargs... )
338338 isnothing (trunc) ||
339339 throw (ArgumentError (" QR-based `left_orth` is incompatible with specifying `trunc`" ))
340340 alg′ = select_algorithm (qr_compact!, A; kwargs... )
341341 return LeftOrthViaQR (alg′)
342342end
343- function select_algorithm (:: typeof (left_orth!), A, :: Val{:polar} ; trunc = nothing , kwargs... )
343+ @inline function select_algorithm (:: typeof (left_orth!), A, :: Val{:polar} ; trunc = nothing , kwargs... )
344344 isnothing (trunc) ||
345345 throw (ArgumentError (" Polar-based `left_orth` is incompatible with specifying `trunc`" ))
346346 alg′ = select_algorithm (left_polar!, A; kwargs... )
347347 return LeftOrthViaPolar (alg′)
348348end
349- function select_algorithm (:: typeof (left_orth!), A, :: Val{:svd} ; trunc = nothing , kwargs... )
349+ @inline function select_algorithm (:: typeof (left_orth!), A, :: Val{:svd} ; trunc = nothing , kwargs... )
350350 alg′ = isnothing (trunc) ? select_algorithm (svd_compact!, A; kwargs... ) :
351351 select_algorithm (svd_trunc!, A; trunc, kwargs... )
352352 return LeftOrthViaSVD (alg′)
353353end
354354
355- function select_algorithm (:: typeof (right_orth!), A, :: Val{:lq} ; trunc = nothing , kwargs... )
355+ @inline function select_algorithm (:: typeof (right_orth!), A, :: Val{:lq} ; trunc = nothing , kwargs... )
356356 isnothing (trunc) ||
357357 throw (ArgumentError (" LQ-based `right_orth` is incompatible with specifying `trunc`" ))
358358 alg = select_algorithm (lq_compact!, A; kwargs... )
359359 return RightOrthViaLQ (alg)
360360end
361- function select_algorithm (:: typeof (right_orth!), A, :: Val{:polar} ; trunc = nothing , kwargs... )
361+ @inline function select_algorithm (:: typeof (right_orth!), A, :: Val{:polar} ; trunc = nothing , kwargs... )
362362 isnothing (trunc) ||
363363 throw (ArgumentError (" Polar-based `right_orth` is incompatible with specifying `trunc`" ))
364364 alg = select_algorithm (right_polar!, A; kwargs... )
365365 return RightOrthViaPolar (alg)
366366end
367- function select_algorithm (:: typeof (right_orth!), A, :: Val{:svd} ; trunc = nothing , kwargs... )
367+ @inline function select_algorithm (:: typeof (right_orth!), A, :: Val{:svd} ; trunc = nothing , kwargs... )
368368 alg′ = isnothing (trunc) ? select_algorithm (svd_compact!, A; kwargs... ) :
369369 select_algorithm (svd_trunc!, A; trunc, kwargs... )
370370 return RightOrthViaSVD (alg′)
371371end
372372
373- function select_algorithm (:: typeof (left_null!), A, :: Val{:qr} ; trunc = nothing , kwargs... )
373+ @inline function select_algorithm (:: typeof (left_null!), A, :: Val{:qr} ; trunc = nothing , kwargs... )
374374 isnothing (trunc) ||
375375 throw (ArgumentError (" QR-based `left_null` is incompatible with specifying `trunc`" ))
376376 alg = select_algorithm (qr_null!, A; kwargs... )
377377 return LeftNullViaQR (alg)
378378end
379- function select_algorithm (:: typeof (left_null!), A, :: Val{:svd} ; trunc = nothing , kwargs... )
379+ @inline function select_algorithm (:: typeof (left_null!), A, :: Val{:svd} ; trunc = nothing , kwargs... )
380380 alg_svd = select_algorithm (svd_full!, A, get (kwargs, :svd , nothing ))
381381 alg = TruncatedAlgorithm (alg_svd, select_null_truncation (trunc))
382382 return LeftNullViaSVD (alg)
383383end
384384
385- function select_algorithm (:: typeof (right_null!), A, :: Val{:lq} ; trunc = nothing , kwargs... )
385+ @inline function select_algorithm (:: typeof (right_null!), A, :: Val{:lq} ; trunc = nothing , kwargs... )
386386 isnothing (trunc) ||
387387 throw (ArgumentError (" LQ-based `right_null` is incompatible with specifying `trunc`" ))
388388 alg = select_algorithm (lq_null!, A; kwargs... )
389389 return RightNullViaLQ (alg)
390390end
391- function select_algorithm (:: typeof (right_null!), A, :: Val{:svd} ; trunc = nothing , kwargs... )
391+ @inline function select_algorithm (:: typeof (right_null!), A, :: Val{:svd} ; trunc = nothing , kwargs... )
392392 alg_svd = select_algorithm (svd_full!, A; kwargs... )
393393 alg = TruncatedAlgorithm (alg_svd, select_null_truncation (trunc))
394394 return RightNullViaSVD (alg)
395395end
396396
397- default_algorithm (:: typeof (left_orth!), :: Type{A} ; trunc = nothing , kwargs... ) where {A} =
397+ @inline default_algorithm (:: typeof (left_orth!), :: Type{A} ; trunc = nothing , kwargs... ) where {A} =
398398 isnothing (trunc) ? select_algorithm (left_orth!, A, Val (:qr ); kwargs... ) :
399399 select_algorithm (left_orth!, A, Val (:svd ); trunc, kwargs... )
400400
401- default_algorithm (:: typeof (right_orth!), :: Type{A} ; trunc = nothing , kwargs... ) where {A} =
401+ @inline default_algorithm (:: typeof (right_orth!), :: Type{A} ; trunc = nothing , kwargs... ) where {A} =
402402 isnothing (trunc) ? select_algorithm (right_orth!, A, Val (:lq ); kwargs... ) :
403403 select_algorithm (right_orth!, A, Val (:svd ); trunc, kwargs... )
404404
405- default_algorithm (:: typeof (left_null!), :: Type{A} ; trunc = nothing , kwargs... ) where {A} =
405+ @inline default_algorithm (:: typeof (left_null!), :: Type{A} ; trunc = nothing , kwargs... ) where {A} =
406406 isnothing (trunc) ? select_algorithm (left_null!, A, Val (:qr ); kwargs... ) :
407407 select_algorithm (left_null!, A, Val (:svd ); trunc, kwargs... )
408408
409- default_algorithm (:: typeof (right_null!), :: Type{A} ; trunc = nothing , kwargs... ) where {A} =
409+ @inline default_algorithm (:: typeof (right_null!), :: Type{A} ; trunc = nothing , kwargs... ) where {A} =
410410 isnothing (trunc) ? select_algorithm (right_null!, A, Val (:lq ); kwargs... ) :
411411 select_algorithm (right_null!, A, Val (:svd ); trunc, kwargs... )
412412
0 commit comments