#include <prime-stream.h>
List of all members.
Detailed Description
template<class Element>
class LinBox::PrimeStream< Element >
Prime number stream
Provides a source of prime numbers of given characteristics to use in parts of the library that need to reduce modulo one or more primes.
Constructor & Destructor Documentation
Constructor
Construct a PrimeStream object.
- Parameters:
-
start | Starting point; need not be prime itself |
move_up | true if we should move up from the starting point, false otherwise |
Member Function Documentation
Element& next |
( |
Element & |
a | ) |
|
|
inline |
Get the next prime element
- Parameters:
-
a | Place to store the next prime element |
- Returns:
- Reference to next prime element
LinBox::Integer doesnot support prevprime
Operator form for getting the next prime element
The documentation for this class was generated from the following file:
- /build/linbox-TzW5I9/linbox-1.1.6~rc0/linbox/util/prime-stream.h