Skip to content

Commit b9b424e

Browse files
authored
Remove unused zero computations in default_blasmul (#258)
1 parent 3604634 commit b9b424e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/muladd.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ function _default_blasmul!(::IndexLinear, α, A::AbstractMatrix, B::AbstractVect
221221
rmul!(C, β)
222222
(nA == 0 || mB == 0) && return C
223223

224-
z = zero(A[1]*B[1] + A[1]*B[1])
225224
Astride = size(A, 1) # use size, not stride, since its not pointer arithmetic
226225

227226
@inbounds for k in colsupport(B,1)
@@ -244,8 +243,6 @@ function _default_blasmul!(::IndexCartesian, α, A::AbstractMatrix, B::AbstractV
244243
rmul!(C, β)
245244
(nA == 0 || mB == 0) && return C
246245

247-
z = zero(A[1,1]*B[1] + A[1,1]*B[1])
248-
249246
@inbounds for k in colsupport(B,1)
250247
b = B[k] * α
251248
for i = colsupport(A,k)

0 commit comments

Comments
 (0)