![]() |
QMCPACK
|
class to generate prime numbers More...
Public Types | |
using | result_type = UIntType |
Public Member Functions | |
PrimeNumberSet () | |
default constructor More... | |
result_type | operator[] (size_t i) const |
size_t | size () const |
bool | get (UIntType offset, int n, std::vector< UIntType > &primes_add) |
add n new primes starting with an offset More... | |
Public Attributes | |
std::vector< UIntType > | primes |
class to generate prime numbers
Definition at line 55 of file PrimeNumberSet.h.
using result_type = UIntType |
Definition at line 57 of file PrimeNumberSet.h.
|
inline |
default constructor
Reserve space for primes and construct min_prime-lowest prime numbers excluding 2
Definition at line 68 of file PrimeNumberSet.h.
|
inline |
add n new primes starting with an offset
offset | offset of a set |
n | number of primes requested |
primes_add | contains n prime numbers if successful |
For i=[0,n), primes_add[i]=primes[offset+i]
Definition at line 110 of file PrimeNumberSet.h.
Referenced by RandomNumberControl::make_children(), RandomNumberControl::make_seeds(), RandomNumberControl::put(), and qmcplusplus::TEST_CASE().
|
inline |
Definition at line 98 of file PrimeNumberSet.h.
|
inline |
std::vector<UIntType> primes |
Definition at line 58 of file PrimeNumberSet.h.
Referenced by PrimeNumberSet< uint_type >::get(), PrimeNumberSet< uint_type >::operator[](), PrimeNumberSet< uint_type >::PrimeNumberSet(), and PrimeNumberSet< uint_type >::size().