Skip to content

Commit 95c6fdf

Browse files
committed
Revert "Add fmpz_mod_vec_rand"
I added _fmpz_mod_vec_rand with the intent to use it in _mpn_mod_vec_rand but did not use it in the end. This reverts commit f98e52c.
1 parent ba6af38 commit 95c6fdf

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

doc/source/fmpz_mod_vec.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Conversions
88

99
.. function:: void _fmpz_mod_vec_set_fmpz_vec(fmpz * A, const fmpz * B, slong len, const fmpz_mod_ctx_t ctx)
1010

11-
Set the `fmpz_{mod}_{vec}` `(A, len)` to the `fmpz_{vec}` `(B, len)` after
11+
Set the `fmpz_mod_vec` `(A, len)` to the `fmpz_vec` `(B, len)` after
1212
reduction of each entry modulo the modulus..
1313

1414
Arithmetic
@@ -61,10 +61,3 @@ Multiplication
6161
.. function:: void _fmpz_mod_vec_mul(fmpz * A, const fmpz * B, const fmpz * C, slong len, const fmpz_mod_ctx_t ctx)
6262

6363
Set `(A, len)` the pointwise multiplication of `(B, len)` and `(C, len)`.
64-
65-
Random functions
66-
--------------------------------------------------------------------------------
67-
68-
.. function:: void _fmpz_mod_vec_rand(fmpz * A, flint_rand_t state, slong len, const fmpz_mod_ctx_t ctx)
69-
70-
Sets ``vec`` to a vector of the given length with entries picked uniformly at random in `[0, mod.n)`.

src/fmpz_mod_vec.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ void _fmpz_mod_vec_dot(fmpz_t d, const fmpz * A, const fmpz * B,
5555
void _fmpz_mod_vec_dot_rev(fmpz_t r, const fmpz * a,
5656
const fmpz * b, slong len, const fmpz_mod_ctx_t ctx);
5757

58-
void _fmpz_mod_vec_rand(fmpz *A, flint_rand_t state, slong len, const fmpz_mod_ctx_t ctx);
59-
6058
#ifdef __cplusplus
6159
}
6260
#endif

src/fmpz_mod_vec/rand.c

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)