OKlibrary  0.2.1.6
Numerics_Tests::test_round< Round > Class Template Reference

Test function for rounding operation More...

#include <Numerics_Tests.hpp>

List of all members.

Public Member Functions

 test_round ()

Detailed Description

template<template< typename Float, typename Return=Float, typename Int_basis=int, typename Int_position=int > class Round>
class Numerics_Tests::test_round< Round >

Test function for rounding operation

Todo:

Check the usage of boost::test_tools::close_at_tolerance.

Test of different floating point types and test of different return types

Test of characteristic properties (x real, k integer):

  1. r(x) is integral
  2. |r(x) - x| <= 1/2
  3. r(-x) = - r(x)
  4. r(x + k) = r(x) + k
  5. r(1/2) = 1.

Definition at line 58 of file Numerics_Tests.hpp.


Constructor & Destructor Documentation

template<template< typename Float, typename Return=Float, typename Int_basis=int, typename Int_position=int > class Round>
Numerics_Tests::test_round< Round >::test_round ( ) [inline]

Definition at line 59 of file Numerics_Tests.hpp.


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