Thrill  0.1
math.hpp File Reference
#include <algorithm>
#include <cassert>
#include <cmath>
#include <limits>
#include <ostream>
+ Include dependency graph for math.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Range
 represents a 1 dimensional range (interval) [begin,end) More...
 

Namespaces

 thrill
 
 thrill::common
 Contains many common tools and helpers shared by higher layers. See common.
 

Macros

#define THRILL_COMMON_MATH_HEADER
 

Functions

template<typename IntegerType , unsigned bits = (8 * sizeof(IntegerType))>
static IntegerType AddTruncToType (const IntegerType &a, const IntegerType &b)
 
static size_t CalcOneFactorPeer (size_t r, size_t p, size_t n)
 Calculate a Perfect Matching (1-Factor) on a Complete Graph. More...
 
static size_t CalcOneFactorSize (size_t n)
 Number of rounds in Perfect Matching (1-Factor). More...
 
static Range CalculateLocalRange (size_t global_size, size_t p, size_t i)
 
static size_t CalculatePartition (size_t global_size, size_t p, size_t k)
 

Macro Definition Documentation

◆ THRILL_COMMON_MATH_HEADER

#define THRILL_COMMON_MATH_HEADER

Definition at line 14 of file math.hpp.