STIR  6.2.0
Namespaces | Functions
round.inl File Reference

Implementation of the stir::round functions. More...

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 

Functions

template<typename integerT >
void stir::round_to (integerT &result, const double x)
 
void stir::round_to (unsigned &result, const double x)
 
void stir::round_to (unsigned long &result, const double x)
 
Functions for rounding floating point numbers
template<typename integerT >
void stir::round_to (integerT &result, const float x)
 Implements rounding of floating point numbers to other integer types. More...
 
int stir::round (const float x)
 Implements rounding of floating point numbers. More...
 
int stir::round (const double x)
 Implements rounding of double numbers. More...
 
template<int num_dimensions, class elemT >
BasicCoordinate< num_dimensions, int > stir::round (const BasicCoordinate< num_dimensions, elemT > &x)
 Implements rounding of a BasicCoordinate object. More...
 
template<int num_dimensions, class integerT , class elemT >
void stir::round_to (BasicCoordinate< num_dimensions, integerT > &result, const BasicCoordinate< num_dimensions, elemT > &x)
 Implements rounding of a BasicCoordinate object to other integer types. More...
 

Detailed Description

Implementation of the stir::round functions.

Author
Kris Thielemans
Charalampos Tsoumpas