We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc99dc8 commit 602b67eCopy full SHA for 602b67e
src/sage/matrix/matrix_modn_dense_template.pxi
@@ -525,10 +525,7 @@ cdef class Matrix_modn_dense_template(Matrix_dense):
525
se = <SparseEntry>t
526
x = se.entry
527
v = self._matrix[se.i]
528
- if type(x) is int:
529
- tmp = (<long>x) % p
530
- v[se.j] = tmp + (tmp<0)*p
531
- elif type(x) is IntegerMod_int and (<IntegerMod_int>x)._parent is R:
+ if type(x) is IntegerMod_int and (<IntegerMod_int>x)._parent is R:
532
v[se.j] = <celement>(<IntegerMod_int>x).ivalue
533
elif type(x) is Integer:
534
if coerce:
0 commit comments