![]() |
![]() |
![]() |
|||||||||||||||||
![]() |
![]() |
![]() |
|||||||||||||||||
![]() |
|
![]() |
|||||||||||||||||
![]() |
![]() |
![]() |
![]() |
Mathematical helper functions
Detailed DescriptionFunction Documentation
template<typename F>
template<typename F>
template<typename I, typename F>
Returns the largest integer which is smaller than (or equal to) arg.
Definition at line 62 of file cxxutils.h.
template<typename I, typename F>
template<typename T>
Returns v1+v2 if v1<0, v1-v2 if v1>=v2, else v1. v1 can be positive or negative; v2 must be positive. Definition at line 76 of file cxxutils.h.
Returns the remainder of the division v1/v2. The result is non-negative. v1 can be positive or negative; v2 must be positive. Definition at line 82 of file cxxutils.h.
template<typename I>
Returns the remainder of the division v1/v2. The result is non-negative. v1 can be positive or negative; v2 must be positive. Definition at line 91 of file cxxutils.h.
template<typename T>
template<typename I>
Returns the integer n, which fulfills n*n<=arg<(n+1)*(n+1).
Definition at line 99 of file cxxutils.h.
template<typename I>
template<typename T>
Returns an index to the left of two interpolation values. begin points to an array containing a sequence of values sorted in ascending order. The length of the array is len. If val is lower than the first element, 0 is returned. If val is higher than the last element, len-2 is returned. Else, the index of the largest element smaller than val is returned. Definition at line 135 of file cxxutils.h.
template<typename T>
Returns an index to the nearest interpolation value. begin points to an array containing a sequence of values sorted in ascending order. The length of the array is len. If val is lower than the first element, 0 is returned. If val is higher than the last element, len-1 is returned. Else, the index of the nearest element within the sequence of values is returned. Definition at line 152 of file cxxutils.h.
Generated on Fri Jun 18 16:12:29 2010 for LevelS C++ support library |
![]() |
![]() |
![]() |
![]() |
||||
![]() |
|
![]() |
||||
![]() |
![]() |
![]() |
||||
![]() |
|
![]() |
||||
![]() |
![]() |
![]() |
||||
![]() |
![]() |
![]() |