Skip to content

Commit 2f3a4e1

Browse files
araujomsdkarrasch
andauthored
_rmul_or_full!
Co-authored-by: Daniel Karrasch <[email protected]>
1 parent e656ea9 commit 2f3a4e1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/matmul.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -602,11 +602,7 @@ function generic_syrk!(C::StridedMatrix{T}, A::StridedVecOrMat{T}, conjugate::Bo
602602
throw(DimensionMismatch(lazy"output matrix has size: $(size(C)), but should have size $((mA, mA))"))
603603
end
604604

605-
if iszero(β)
606-
fill!(C, T(0))
607-
elseif !isone(β)
608-
C .*= β
609-
end
605+
_rmul_or_fill!(C, β)
610606
@inbounds if !conjugate
611607
if aat
612608
for k 1:n, j 1:m

0 commit comments

Comments
 (0)