Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/matmul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,7 @@ function _generic_matmatmul_nonadjtrans!(C, A, B, alpha, beta)
@inbounds for n in axes(B, 2), k in axes(B, 1)
# Balpha = B[k,n] * alpha, but we skip the multiplication in case isone(alpha)
Balpha = @stable_muladdmul MulAddMul(alpha, false)(B[k,n])
!ismissing(Balpha) && iszero(Balpha) && continue
@simd for m in axes(A, 1)
C[m,n] = muladd(A[m,k], Balpha, C[m,n])
end
Expand Down
1 change: 1 addition & 0 deletions test/matmul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ import LinearAlgebra: Adjoint, Transpose
(*)(x::RootInt, y::Integer) = x.i * y
adjoint(x::RootInt) = x
transpose(x::RootInt) = x
Base.zero(::RootInt) = RootInt(0)

@test Base.promote_op(*, RootInt, RootInt) === Int

Expand Down