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 7b2c76d commit 940868bCopy full SHA for 940868b
src/flint/types/nmod_mat.pyx
@@ -119,7 +119,7 @@ cdef class nmod_mat(flint_mat):
119
row = val[i]
120
for j from 0 <= j < n:
121
x = nmod(row[j], mod)
122
- self.val.rows[i][j] = (<nmod>x).val
+ nmod_mat_set_entry(self.val, i, j, x.val)
123
else:
124
raise TypeError("cannot create nmod_mat from input of type %s" % type(val))
125
elif len(args) == 2:
@@ -134,7 +134,7 @@ cdef class nmod_mat(flint_mat):
134
for i from 0 <= i < m:
135
136
x = nmod(entries[i*n + j], mod) # XXX: slow
137
138
139
raise TypeError("nmod_mat: expected 1-3 arguments plus modulus")
140
0 commit comments