Skip to content

Commit 35e4983

Browse files
dlesnoffvneiger
andauthored
Apply suggestions - Improve documentation
Co-authored-by: Vincent Neiger <[email protected]>
1 parent 59f5c7d commit 35e4983

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/source/nmod_poly.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ Randomization
231231

232232
.. function:: void nmod_poly_randtest(nmod_poly_t poly, flint_rand_t state, slong len)
233233

234-
Generates a random and sparse with increased probability polynomial with length up to ``len``.
234+
Generates a random polynomial with length up to ``len``, with for each coefficient the probability of some special values increased (see :func:`n_randtest`). This function is intended for use in test code.
235235

236236
.. function:: void nmod_poly_randtest_monic(nmod_poly_t poly, flint_rand_t state, slong len)
237237

238-
Generates a random and sparse with increased probability monic polynomial with length ``len``.
238+
Generates a random monic polynomial with length ``len``. For each coefficient the probability of some special values is increased (see :func:`n_randtest`). This function is intended for use in test code.
239239

240240
.. function:: void nmod_poly_randtest_trinomial(nmod_poly_t poly, flint_rand_t state, slong len)
241241

doc/source/nmod_poly_mat.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Random matrix generation
144144

145145
.. function:: void nmod_poly_mat_randtest(nmod_poly_mat_t mat, flint_rand_t state, slong len)
146146

147-
Generates a matrix of polynomials sparse with an increased probability. It is equivalent to apply ``nmod_poly_randtest`` to all entries in the matrix.
147+
Generates a matrix of polynomials randomly, with special values increased for each coefficient. This is intended for use in test code and is equivalent to applying ``nmod_poly_randtest`` to all entries in the matrix.
148148

149149
.. function:: void nmod_poly_mat_randtest_sparse(nmod_poly_mat_t A, flint_rand_t state, slong len, float density)
150150

0 commit comments

Comments
 (0)