linbox
Data Structures | Namespaces | Functions
random-prime.h File Reference

Generates random positive prime Integers. More...

#include <givaro/givinteger.h>
#include <givaro/givintprime.h>
#include "linbox/util/timer.h"
#include "linbox/util/debug.h"
#include "linbox/field/field-traits.h"
+ Include dependency graph for random-prime.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  DeterministicTag
 Iterator following a deterministic sequence of primes (from the largest one, in decreasing order. More...
 
struct  UniformTag
 Iterator sampling uniformly from all primes of given bitsize. More...
 
struct  HeuristicTag
 Iterator sampling randomly (no distribution guaranteed whatsoever) from all primes of given bitsize. More...
 
struct  UniqueSamplingTrait< IteratorTrait >
 Whether a prime generator generates a sequence with non repeating numbers. More...
 
class  PrimeIterator< Trait >
 Prime Iterator. More...
 
class  PrimeSequence< IteratorT, UniqueTrait >
 Adaptor class to make a fixed-length sequence behave like a PrimeIterator. More...
 
class  MaskedPrimeIterator< Trait >
 Masked Prime Iterator. More...
 

Namespaces

 LinBox
 Namespace in which all linbox code resides.
 
 LinBox::IteratorCategories
 Information about the type of Prime Iterator.
 

Functions

template<typename Container >
PrimeSequence< typename Container::const_iterator > create_prime_sequence (const Container &cont)
 convenience factory to create a PrimeSequence from an STL-like container. More...
 

Detailed Description

Generates random positive prime Integers.