waLBerla 7.2
|
Declares functions dealing with prime numbers.
Namespaces | |
namespace | walberla |
Storage for detected contacts which can be used to perform actions for all contacts, e.g. | |
namespace | walberla::math |
Functions | |
bool | walberla::math::isPrime (const uint_t n) |
Query if n is prime. | |
std::vector< uint_t > | walberla::math::getPrimes (const uint_t n) |
Determine prime numbers up to an upper bound. | |
std::vector< uint_t > | walberla::math::getPrimeFactors (const uint_t n) |
Gets all prime factors of a number. | |
std::set< uint_t > | walberla::math::getDevisors (const uint_t n) |
Gets all devisors of a number n. | |