Skip to content

Commit ffa65d1

Browse files
committed
Check size in symmetric mul
1 parent 27bdc52 commit ffa65d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/symmetric.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,14 @@ end
707707
mul(A::HermOrSym, B::HermOrSym) = A * copyto!(similar(parent(B)), B)
708708
# catch a few potential BLAS-cases
709709
function mul(A::HermOrSym{<:BlasFloat,<:StridedMatrix}, B::AdjOrTrans{<:BlasFloat,<:StridedMatrix})
710+
matmul_size_check(size(A), size(B))
710711
T = promote_type(eltype(A), eltype(B))
711712
mul!(similar(B, T, (size(A, 1), size(B, 2))),
712713
convert(AbstractMatrix{T}, A),
713714
copy_oftype(B, T)) # make sure the AdjOrTrans wrapper is resolved
714715
end
715716
function mul(A::AdjOrTrans{<:BlasFloat,<:StridedMatrix}, B::HermOrSym{<:BlasFloat,<:StridedMatrix})
717+
matmul_size_check(size(A), size(B))
716718
T = promote_type(eltype(A), eltype(B))
717719
mul!(similar(B, T, (size(A, 1), size(B, 2))),
718720
copy_oftype(A, T), # make sure the AdjOrTrans wrapper is resolved

0 commit comments

Comments
 (0)