Skip to content

Commit 4139bd9

Browse files
committed
add DefaultAlgorithm
1 parent cac5018 commit 4139bd9

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/MatrixAlgebraKit.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export LAPACK_HouseholderQR, LAPACK_HouseholderLQ, LAPACK_Simple, LAPACK_Expert,
3939
export GLA_HouseholderQR, GLA_QRIteration, GS_QRIteration
4040
export LQViaTransposedQR
4141
export PolarViaSVD, PolarNewton
42+
export DefaultAlgorithm
4243
export DiagonalAlgorithm
4344
export NativeBlocked
4445
export CUSOLVER_Simple, CUSOLVER_HouseholderQR, CUSOLVER_QRIteration, CUSOLVER_SVDPolar,

src/interface/decompositions.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,15 @@ until convergence up to tolerance `tol`.
304304
# =========================
305305
# Varia
306306
# =========================
307+
"""
308+
DefaultAlgorithm(; kwargs...)
309+
310+
Algorithm sentinel that resolves to the default algorithm for a given function and input
311+
type at call time. Any keyword arguments stored in the instance are forwarded at runtime
312+
to [`select_algorithm`](@ref).
313+
"""
314+
@algdef DefaultAlgorithm
315+
307316
"""
308317
DiagonalAlgorithm(; kwargs...)
309318

0 commit comments

Comments
 (0)