Skip to content

Commit a390bdc

Browse files
committed
fix: fmpz_mat * nmod_mat -> nmod_mat
1 parent 913f69c commit a390bdc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/flint/nmod_mat.pyx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,10 @@ cdef class nmod_mat:
291291
sv = &(<nmod_mat>s).val[0]
292292
if any_as_nmod(&c, t, sv.mod):
293293
return (<nmod_mat>s).__mul_nmod(c)
294-
return NotImplemented
294+
u = any_as_nmod_mat(t, sv.mod)
295+
if u is NotImplemented:
296+
return u
297+
return u * s
295298

296299
@staticmethod
297300
def _div_(nmod_mat s, t):

0 commit comments

Comments
 (0)