Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/flint/types/nmod_mat.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ cdef class nmod_mat(flint_mat):
row = val[i]
for j from 0 <= j < n:
x = nmod(row[j], mod)
self.val.rows[i][j] = (<nmod>x).val
nmod_mat_set_entry(self.val, i, j, x.val)
else:
raise TypeError("cannot create nmod_mat from input of type %s" % type(val))
elif len(args) == 2:
Expand All @@ -134,7 +134,7 @@ cdef class nmod_mat(flint_mat):
for i from 0 <= i < m:
for j from 0 <= j < n:
x = nmod(entries[i*n + j], mod) # XXX: slow
self.val.rows[i][j] = (<nmod>x).val
nmod_mat_set_entry(self.val, i, j, x.val)
else:
raise TypeError("nmod_mat: expected 1-3 arguments plus modulus")

Expand Down
Loading