Static Public Member Functions

chomp::homology::dummyRounding< numType > Class Template Reference

A dummy class for rounding operations which does not actually do any rounding. More...

#include <chomp/struct/digraph.h>

List of all members.

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_t 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.

Detailed Description

template<class numType>
class chomp::homology::dummyRounding< numType >

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 69 of file digraph.h.


Member Function Documentation

template<class numType>
static numType chomp::homology::dummyRounding< numType >::add_down ( const numType &  x,
const numType &  y 
) [inline, static]

Adds two numbers with the result rounded downwards.

Definition at line 73 of file digraph.h.

template<class numType>
static numType chomp::homology::dummyRounding< numType >::add_up ( const numType &  x,
const numType &  y 
) [inline, static]

Adds two numbers with the result rounded upwards.

Definition at line 77 of file digraph.h.

template<class numType>
static numType chomp::homology::dummyRounding< numType >::div_down ( const numType &  x,
int_t  y 
) [inline, static]

Divides a number by an integer with the result rounded downwards.

Definition at line 101 of file digraph.h.

template<class numType>
static numType chomp::homology::dummyRounding< numType >::div_down ( const numType &  x,
const numType &  y 
) [inline, static]

Divides two numbers with the result rounded downwards.

Definition at line 97 of file digraph.h.

template<class numType>
static numType chomp::homology::dummyRounding< numType >::div_up ( const numType &  x,
const numType &  y 
) [inline, static]

Divides two numbers with the result rounded upwards.

Definition at line 105 of file digraph.h.

template<class numType>
static numType chomp::homology::dummyRounding< numType >::mul_down ( const numType &  x,
const numType &  y 
) [inline, static]

Multiplies two numbers with the result rounded downwards.

Definition at line 89 of file digraph.h.

template<class numType>
static numType chomp::homology::dummyRounding< numType >::mul_up ( const numType &  x,
const numType &  y 
) [inline, static]

Multiplies two numbers with the result rounded upwards.

Definition at line 93 of file digraph.h.

template<class numType>
static numType chomp::homology::dummyRounding< numType >::sub_down ( const numType &  x,
const numType &  y 
) [inline, static]

Subtracts two numbers with the result rounded downwards.

Definition at line 81 of file digraph.h.

template<class numType>
static numType chomp::homology::dummyRounding< numType >::sub_up ( const numType &  x,
const numType &  y 
) [inline, static]

Subtracts two numbers with the result rounded upwards.

Definition at line 85 of file digraph.h.


The documentation for this class was generated from the following file: