linbox
RandomFFTPrime Class Reference

#include <random-fftprime.h>

Public Types

typedef integer PrimeType
 
typedef std::vector< PrimeTypeVectPrime
 

Static Public Member Functions

static bool randomPrime (PrimeType &p, const PrimeType &pbound, uint64_t k)
 
static bool generatePrime (PrimeType &p, const PrimeType &pbound, uint64_t kmin=1)
 
static bool generatePrimes (VectPrime &primes, const PrimeType &pbound, const PrimeType &prodbound, uint64_t kmin=1)
 
static void seeding (uint64_t seed)
 
static void seeding (const Integer &seed)
 
static void seeding ()
 

Static Public Attributes

static const int32_t probab_prime_ntests = 25
 
static const size_t max_ntries = 256
 

Member Typedef Documentation

◆ PrimeType

typedef integer PrimeType

◆ VectPrime

typedef std::vector<PrimeType> VectPrime

Member Function Documentation

◆ randomPrime()

static bool randomPrime ( PrimeType & p,
const PrimeType & pbound,
uint64_t k )
inlinestatic

◆ generatePrime()

static bool generatePrime ( PrimeType & p,
const PrimeType & pbound,
uint64_t kmin = 1 )
inlinestatic

◆ generatePrimes()

static bool generatePrimes ( VectPrime & primes,
const PrimeType & pbound,
const PrimeType & prodbound,
uint64_t kmin = 1 )
inlinestatic

◆ seeding() [1/3]

static void seeding ( uint64_t seed)
inlinestatic

◆ seeding() [2/3]

static void seeding ( const Integer & seed)
inlinestatic

◆ seeding() [3/3]

static void seeding ( )
inlinestatic

Field Documentation

◆ probab_prime_ntests

const int32_t probab_prime_ntests = 25
static

◆ max_ntries

const size_t max_ntries = 256
static

The documentation for this class was generated from the following file: