Skip to content

Commit a1478bd

Browse files
committed
Improve performance of HermOrSym sparse matrix times dense matrix (#692)
1 parent 0f059b7 commit a1478bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/linalg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ Base.@constprop :aggressive function spdensemul!(C, tA, tB, A, B, alpha, beta)
6262
_At_or_Ac_mul_B!(transpose, C, A, wrap(B, tB), alpha, beta)
6363
elseif tA_uc == 'C'
6464
_At_or_Ac_mul_B!(adjoint, C, A, wrap(B, tB), alpha, beta)
65-
elseif tA_uc in ('S', 'H') && tB_uc == 'N'
65+
elseif tA_uc in ('S', 'H')
6666
rangefun = isuppercase(tA) ? nzrangeup : nzrangelo
6767
diagop = tA_uc == 'S' ? identity : real
6868
odiagop = tA_uc == 'S' ? transpose : adjoint
6969
T = eltype(C)
70-
_mul!(rangefun, diagop, odiagop, C, A, B, T(alpha), T(beta))
70+
_mul!(rangefun, diagop, odiagop, C, A, wrap(B, tB), T(alpha), T(beta))
7171
else
7272
@stable_muladdmul LinearAlgebra._generic_matmatmul!(C, wrap(A, tA), wrap(B, tB), MulAddMul(alpha, beta))
7373
end

0 commit comments

Comments
 (0)