|
STIR 6.4.0
|
Implementation of the stir::round functions. More...
Go to the source code of this file.
Namespaces | |
| namespace | 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. | |
| int | stir::round (const float x) |
| Implements rounding of floating point numbers. | |
| int | stir::round (const double x) |
| Implements rounding of double numbers. | |
| template<int num_dimensions, class elemT> | |
| BasicCoordinate< num_dimensions, int > | stir::round (const BasicCoordinate< num_dimensions, elemT > &x) |
| Implements rounding of a BasicCoordinate object. | |
| 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. | |
Implementation of the stir::round functions.