This commit is contained in:
Awni Hannun
2025-06-02 13:43:22 -07:00
parent f859e75f4f
commit d4aafb9161
2 changed files with 8 additions and 9 deletions

View File

@@ -2864,8 +2864,7 @@ array matmul(
}
// complex matmul using Karatsuba's Algorithm
if (a.dtype() == complex64 && b.dtype() == complex64) {
if (a.dtype() == complex64 || b.dtype() == complex64) {
// Extract real and imaginary parts
auto a_real = real(a, s);
auto a_imag = imag(a, s);