|
template<typename T > |
T | math::algo::accum_absolute_sum (T const &init, T const &next) |
| Absolute sum accumulator.
|
|
template<typename T > |
T | math::algo::accum_squared_sum (T const &init, T const &next) |
| Squared sum accumulator.
|
|
template<typename Key , typename Value > |
Value const * | math::algo::binary_search (std::vector< std::pair< Key, Value > > const &vec, Key const &key) |
| Algorithm that finds the value corresponding to a key in sorted vector of key-value pairs.
|
|
template<typename T > |
void | math::algo::foreach_absolute_value (T &val) |
| for-each functor: applies absolute value to operand.
|
|
template<typename T > |
void | math::algo::foreach_ceil (T &val) |
| for-each functor: applies ceil operation to the operand.
|
|
template<typename T > |
void | math::algo::foreach_floor (T &val) |
| for-each functor: applies floor operation to the operand.
|
|
template<typename T > |
void | math::algo::foreach_invert_value (T &val) |
| for-each functor: inverts floating point values with 1/value.
|
|
template<typename T > |
void | math::algo::foreach_negate_value (T &val) |
| for-each functor: negates the operand.
|
|
template<typename T > |
void | math::algo::foreach_round (T &val) |
| for-each functor: applies rounding to the operand.
|
|
template<typename T > |
void | math::algo::kernel_region (T const &cx, T const &cy, T const &ks, T const &width, T const &height, T *x1, T *x2, T *y1, T *y2) |
| Returns the kernel region (x1,y1) to (x2,y2) for a kernel of size ks for image of size (width, height) and for center pixel (cx,cy).
|
|
template<typename FwdIter > |
std::size_t | math::algo::max_element_id (FwdIter first, FwdIter last) |
| Algorithm that returns the ID (starting from zero at element 'first') of the largest element in range [first, last[.
|
|
template<typename FwdIter > |
std::size_t | math::algo::min_element_id (FwdIter first, FwdIter last) |
| Algorithm that returns the ID (starting from zero at element 'first') of the smallest element in range [first, last[.
|
|
template<typename T > |
void | math::algo::sort_values (T *a, T *b, T *c) |
|
template<typename T > |
void | math::algo::vector_clean (std::vector< bool > const &delete_list, std::vector< T > *vector) |
| Erases all elements from 'vector' that are marked with 'true' in 'delete_list'.
|
|