#include <chomp/struct/digraph.h>
Static Public Member Functions | |
static numType | add_down (const numType &x, const numType &y) |
Adds two numbers with the result rounded downwards. | |
static numType | add_up (const numType &x, const numType &y) |
Adds two numbers with the result rounded upwards. | |
static numType | sub_down (const numType &x, const numType &y) |
Subtracts two numbers with the result rounded downwards. | |
static numType | sub_up (const numType &x, const numType &y) |
Subtracts two numbers with the result rounded upwards. | |
static numType | mul_down (const numType &x, const numType &y) |
Multiplies two numbers with the result rounded downwards. | |
static numType | mul_up (const numType &x, const numType &y) |
Multiplies two numbers with the result rounded upwards. | |
static numType | div_down (const numType &x, const numType &y) |
Divides two numbers with the result rounded downwards. | |
static numType | div_down (const numType &x, int y) |
Divides a number by an integer with the result rounded downwards. | |
static numType | div_up (const numType &x, const numType &y) |
Divides two numbers with the result rounded upwards. |
Please, use it as a template for your own rounding classes.
Definition at line 64 of file digraph.h.
static numType chomp::homology::dummyRounding< numType >::add_down | ( | const numType & | x, | |
const numType & | y | |||
) | [inline, static] |
static numType chomp::homology::dummyRounding< numType >::add_up | ( | const numType & | x, | |
const numType & | y | |||
) | [inline, static] |
static numType chomp::homology::dummyRounding< numType >::sub_down | ( | const numType & | x, | |
const numType & | y | |||
) | [inline, static] |
static numType chomp::homology::dummyRounding< numType >::sub_up | ( | const numType & | x, | |
const numType & | y | |||
) | [inline, static] |
static numType chomp::homology::dummyRounding< numType >::mul_down | ( | const numType & | x, | |
const numType & | y | |||
) | [inline, static] |
static numType chomp::homology::dummyRounding< numType >::mul_up | ( | const numType & | x, | |
const numType & | y | |||
) | [inline, static] |
static numType chomp::homology::dummyRounding< numType >::div_down | ( | const numType & | x, | |
const numType & | y | |||
) | [inline, static] |
static numType chomp::homology::dummyRounding< numType >::div_down | ( | const numType & | x, | |
int | y | |||
) | [inline, static] |
static numType chomp::homology::dummyRounding< numType >::div_up | ( | const numType & | x, | |
const numType & | y | |||
) | [inline, static] |