Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (34 sloc) 1.634 kb
7b06b09 Add a module "long_extras" with randtest() functions
SPancratz authored
1 /*=============================================================================
2
3 This file is part of FLINT.
4
5 FLINT is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 FLINT is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with FLINT; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19 =============================================================================*/
20 /******************************************************************************
21
22 Copyright (C) 2010 Sebastian Pancratz
23
24 ******************************************************************************/
25
26 #ifndef LONG_EXTRAS_H
27 #define LONG_EXTRAS_H
28
29 #include <mpir.h>
30 #include "flint.h"
31
0103ccb @wbhart Made NTL interface work, fixed lots of build system errors.
wbhart authored
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
4a73b43 fmpz_sizeinbase, z_sizeinbase.
SPancratz authored
36 /* Properties ****************************************************************/
37
38 size_t z_sizeinbase(long n, int b);
39
7b06b09 Add a module "long_extras" with randtest() functions
SPancratz authored
40 /* Randomisation ************************************************************/
41
a007065 Added flint_rand_t to fmpz_vec module and top level module.
William Hart authored
42 mp_limb_signed_t z_randtest(flint_rand_t state);
7b06b09 Add a module "long_extras" with randtest() functions
SPancratz authored
43
a007065 Added flint_rand_t to fmpz_vec module and top level module.
William Hart authored
44 mp_limb_signed_t z_randtest_not_zero(flint_rand_t state);
7b06b09 Add a module "long_extras" with randtest() functions
SPancratz authored
45
a89b718 Adds "z_randint" to long_extras
SPancratz authored
46 mp_limb_signed_t z_randint(flint_rand_t state, mp_limb_t limit);
47
0103ccb @wbhart Made NTL interface work, fixed lots of build system errors.
wbhart authored
48 #ifdef __cplusplus
49 }
50 #endif
51
7b06b09 Add a module "long_extras" with randtest() functions
SPancratz authored
52 #endif
53
Something went wrong with that request. Please try again.