Skip to content

Commit 2f51d52

Browse files
committed
LinearAlgebra._generic_mat[vec/mat]mul! prefers plain alpha & beta (#691)
1 parent 8b56957 commit 2f51d52

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Base.@constprop :aggressive function spdensemul!(C, tA, tB, A, B, alpha, beta)
6969
T = eltype(C)
7070
_mul!(rangefun, diagop, odiagop, C, A, wrap(B, tB), T(alpha), T(beta))
7171
else
72-
@stable_muladdmul LinearAlgebra._generic_matmatmul!(C, wrap(A, tA), wrap(B, tB), MulAddMul(alpha, beta))
72+
LinearAlgebra._generic_matmatmul!(C, wrap(A, tA), wrap(B, tB), alpha, beta)
7373
end
7474
return C
7575
end

src/sparsevector.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,7 @@ Base.@constprop :aggressive function generic_matvecmul!(y::AbstractVector, tA, A
20412041
elseif tA == 'C'
20422042
_At_or_Ac_mul_B!((a,b) -> adjoint(a) * b, y, A, x, alpha, beta)
20432043
else
2044-
@stable_muladdmul LinearAlgebra._generic_matvecmul!(y, 'N', wrap(A, tA), x, MulAddMul(alpha, beta))
2044+
LinearAlgebra._generic_matvecmul!(y, 'N', wrap(A, tA), x, alpha, beta)
20452045
end
20462046
return y
20472047
end

0 commit comments

Comments
 (0)