Skip to content

Commit 9c29751

Browse files
committed
simplify further, use fill!
1 parent 497c112 commit 9c29751

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
@@ -603,10 +603,7 @@ function generic_syrk!(C::StridedMatrix{T}, A::StridedVecOrMat{T}, conjugate::Bo
603603
_rmul_or_fill!(C, β)
604604
else # iszero(β) && A is non-empty
605605
aA_11 = abs2(A[1,1])
606-
C_ij = zero(aA_11 + aA_11)
607-
for j 1:m, i 1:j
608-
C[i,j] = C_ij
609-
end
606+
fill!(UpperTriangular(C), zero(aA_11 + aA_11))
610607
end
611608
iszero(α) && return C
612609
@inbounds if !conjugate

0 commit comments

Comments
 (0)