Skip to content

Commit aff37ab

Browse files
committed
spell out the muladdmul
1 parent 04041c4 commit aff37ab

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/matmul.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,10 +1067,7 @@ function __generic_matvecmul!(::typeof(identity), C::AbstractVector, A::Abstract
10671067
if length(B) == 0
10681068
C[i] = zero(eltype(C))
10691069
else
1070-
AiB1 = A[i]*B[1]
1071-
# the sum is necessary for potential type promotion
1072-
AiB1C = AiB1 + zero(AiB1)
1073-
@stable_muladdmul _modify!(MulAddMul(alpha, beta), AiB1C, C, i)
1070+
C[i] = A[i]*B[1]*alpha + C[i]*beta
10741071
end
10751072
end
10761073
if !iszero(alpha)

0 commit comments

Comments
 (0)