You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/MatrixAlgebraKitCUDAExt/MatrixAlgebraKitCUDAExt.jl
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,19 @@ function MatrixAlgebraKit.default_eigh_algorithm(::Type{T}; kwargs...) where {TT
32
32
return CUSOLVER_DivideAndConquer(; kwargs...)
33
33
end
34
34
35
+
for f in (
36
+
:(MatrixAlgebraKit.default_lq_algorithm),
37
+
:(MatrixAlgebraKit.default_qr_algorithm),
38
+
:(MatrixAlgebraKit.default_eig_algorithm),
39
+
:(MatrixAlgebraKit.default_eigh_algorithm),
40
+
:(MatrixAlgebraKit.default_svd_algorithm),
41
+
)
42
+
43
+
@eval function$f(::Type{T}; kwargs...) where {S, T <:Diagonal{S, <:StridedCuVector}}
44
+
return DiagonalAlgorithm(; kwargs...)
45
+
end
46
+
end
47
+
35
48
# include for block sector support
36
49
function MatrixAlgebraKit.default_qr_algorithm(::Type{Base.ReshapedArray{T, 2, SubArray{T, 1, A, Tuple{UnitRange{Int}}, true}, Tuple{}}}; kwargs...) where {T <:BlasFloat, A <:CuVecOrMat{T}}
0 commit comments