@@ -62,19 +62,19 @@ op_wrappers = ((identity, T -> 'N', identity),
62
62
(T -> :(HermOrSym{T, <: $T }), T -> ' N' , A -> :(parent ($ A))))
63
63
64
64
# legacy methods with final MulAddMul argument
65
- LinearAlgebra. generic_matvecmul! (C:: CuVector{T} , tA:: AbstractChar , A:: CuSparseMatrix{T } , B:: DenseCuVector{T} , _add:: MulAddMul ) where {T <: Union{Float16, ComplexF16, BlasFloat} } =
65
+ LinearAlgebra. generic_matvecmul! (C:: CuVector{T} , tA:: AbstractChar , A:: CuSparseMatrix{S } , B:: DenseCuVector{T} , _add:: MulAddMul ) where {T <: Union{Float16, ComplexF16, BlasFloat} , S <: Union{Float16, ComplexF16, BlasFloat} } =
66
66
LinearAlgebra. generic_matvecmul! (C, tA, A, B, _add. alpha, _add. beta)
67
- LinearAlgebra. generic_matvecmul! (C:: CuVector{T} , tA:: AbstractChar , A:: CuSparseMatrix{T } , B:: CuSparseVector{T} , _add:: MulAddMul ) where {T <: Union{Float16, ComplexF16, BlasFloat} } =
67
+ LinearAlgebra. generic_matvecmul! (C:: CuVector{T} , tA:: AbstractChar , A:: CuSparseMatrix{S } , B:: CuSparseVector{T} , _add:: MulAddMul ) where {T <: Union{Float16, ComplexF16, BlasFloat} , S <: Union{Float16, ComplexF16, BlasFloat} } =
68
68
LinearAlgebra. generic_matvecmul! (C, tA, A, B, _add. alpha, _add. beta)
69
69
LinearAlgebra. generic_matmatmul! (C:: CuMatrix{T} , tA, tB, A:: CuSparseMatrix{T} , B:: DenseCuMatrix{T} , _add:: MulAddMul ) where {T <: Union{Float16, ComplexF16, BlasFloat} } =
70
70
LinearAlgebra. generic_matmatmul! (C, tA, tB, A, B, _add. alpha, _add. beta)
71
71
72
- function LinearAlgebra. generic_matvecmul! (C:: CuVector{T} , tA:: AbstractChar , A:: CuSparseMatrix{T } , B:: DenseCuVector{T} , alpha:: Number , beta:: Number ) where {T <: Union{Float16, ComplexF16, BlasFloat} }
72
+ function LinearAlgebra. generic_matvecmul! (C:: CuVector{T} , tA:: AbstractChar , A:: CuSparseMatrix{S } , B:: DenseCuVector{T} , alpha:: Number , beta:: Number ) where {T <: Union{Float16, ComplexF16, BlasFloat} , S <: Union{Float16, ComplexF16, BlasFloat} }
73
73
tA = tA in (' S' , ' s' , ' H' , ' h' ) ? ' N' : tA
74
74
mv_wrapper (tA, alpha, A, B, beta, C)
75
75
end
76
76
77
- function LinearAlgebra. generic_matvecmul! (C:: CuVector{T} , tA:: AbstractChar , A:: CuSparseMatrix{T } , B:: CuSparseVector{T} , alpha:: Number , beta:: Number ) where {T <: Union{Float16, ComplexF16, BlasFloat} }
77
+ function LinearAlgebra. generic_matvecmul! (C:: CuVector{T} , tA:: AbstractChar , A:: CuSparseMatrix{S } , B:: CuSparseVector{T} , alpha:: Number , beta:: Number ) where {T <: Union{Float16, ComplexF16, BlasFloat} , S <: Union{Float16, ComplexF16, BlasFloat} }
78
78
tA = tA in (' S' , ' s' , ' H' , ' h' ) ? ' N' : tA
79
79
mv_wrapper (tA, alpha, A, CuVector {T} (B), beta, C)
80
80
end
0 commit comments