18#include <boost/random.hpp>
56 typename T::const_iterator
refIt = ref.begin();
61 while (
refIt != ref.end()) {
88 double half =
int_pow<n / 2>(x);
92 return half * half * x;
#define CHECK_INVARIANT(expr, mess)
#define PRECONDITION(expr, mess)
#define RDKIT_RDGENERAL_EXPORT
std::vector< int > INT_VECT
boost::uniform_int uniform_int
RDKIT_RDGENERAL_EXPORT bool feq(double v1, double v2, double tol=1e-4)
floating point comparison with a tolerance
boost::minstd_rand rng_type
boost::variate_generator< rng_type &, uniform_double > double_source_type
RDKIT_RDGENERAL_EXPORT double computeIntVectPrimesProduct(const INT_VECT &ring)
compute the product of the set of primes corresponding to the values in an INT_VECT
bool rdvalue_is(const RDValue_cast_t)
RDKIT_RDGENERAL_EXPORT double_source_type & getDoubleRandomSource()
return a reference to the global (Boost) random source
boost::variate_generator< rng_type &, uniform_int > int_source_type
RDKIT_RDGENERAL_EXPORT std::string augmentTagName(const std::string &tag)
int firstThousandPrimes[NUM_PRIMES_AVAIL]
const int NUM_PRIMES_AVAIL
the number of primes available and stored
RDKIT_RDGENERAL_EXPORT rng_type & getRandomGenerator(int seed=-1)
unsigned int countSwapsToInterconvert(const T &ref, T probe)
boost::uniform_real uniform_double
const int FILE_MAXLINE
an assumed maximum length for lines read from files
RDKIT_RDGENERAL_EXPORT double getRandomVal(int seed=-1)
double int_pow< 0 >(double)
double int_pow< 1 >(double x)