The CyMeAlg Software (Release 0.01)
|
A dummy class for rounding operations which does not actually do any rounding. More...
#include <dummyrnd.h>
Static Public Member Functions | |
static numType | add_down (const numType &x, const numType &y) |
Adds two numbers with the result rounded downwards. More... | |
static numType | add_up (const numType &x, const numType &y) |
Adds two numbers with the result rounded upwards. More... | |
static numType | sub_down (const numType &x, const numType &y) |
Subtracts two numbers with the result rounded downwards. More... | |
static numType | sub_up (const numType &x, const numType &y) |
Subtracts two numbers with the result rounded upwards. More... | |
static numType | mul_down (const numType &x, const numType &y) |
Multiplies two numbers with the result rounded downwards. More... | |
static numType | mul_up (const numType &x, const numType &y) |
Multiplies two numbers with the result rounded upwards. More... | |
static numType | div_down (const numType &x, const numType &y) |
Divides two numbers with the result rounded downwards. More... | |
static numType | div_down (const numType &x, int_t y) |
Divides a number by an integer with the result rounded downwards. More... | |
static numType | div_up (const numType &x, const numType &y) |
Divides two numbers with the result rounded upwards. More... | |
A dummy class for rounding operations which does not actually do any rounding.
Please, use it as a template for your own rounding classes.
Definition at line 45 of file dummyrnd.h.
|
inlinestatic |
Adds two numbers with the result rounded downwards.
Definition at line 49 of file dummyrnd.h.
|
inlinestatic |
Adds two numbers with the result rounded upwards.
Definition at line 53 of file dummyrnd.h.
|
inlinestatic |
Divides two numbers with the result rounded downwards.
Definition at line 73 of file dummyrnd.h.
|
inlinestatic |
Divides a number by an integer with the result rounded downwards.
Definition at line 77 of file dummyrnd.h.
|
inlinestatic |
Divides two numbers with the result rounded upwards.
Definition at line 81 of file dummyrnd.h.
|
inlinestatic |
Multiplies two numbers with the result rounded downwards.
Definition at line 65 of file dummyrnd.h.
|
inlinestatic |
Multiplies two numbers with the result rounded upwards.
Definition at line 69 of file dummyrnd.h.
|
inlinestatic |
Subtracts two numbers with the result rounded downwards.
Definition at line 57 of file dummyrnd.h.
|
inlinestatic |
Subtracts two numbers with the result rounded upwards.
Definition at line 61 of file dummyrnd.h.