Skip to content

Commit

Permalink
Fix multiply test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericgig committed May 14, 2024
1 parent c865d4e commit be004f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qutip/core/data/matmul.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,10 @@ cpdef CSR multiply_csr(CSR left, CSR right):
+ " and "
+ str(right.shape)
)

left = left.sort_indices()
right = right.sort_indices()

cdef idxint col_left, left_nnz = csr.nnz(left)
cdef idxint col_right, right_nnz = csr.nnz(right)
cdef idxint ptr_left, ptr_right, ptr_left_max, ptr_right_max
Expand Down

0 comments on commit be004f2

Please sign in to comment.