MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
algo.h File Reference
#include <cmath>
#include <vector>
#include <iterator>
#include <stdexcept>
#include "math/defines.h"
Include dependency graph for algo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  math::algo::foreach_addition_with_const< T >
 for-each functor: adds a constant value to operand. More...
 
struct  math::algo::foreach_constant_power< T >
 for-each functor: raises each operand to the power of constant value. More...
 
struct  math::algo::foreach_divide_by_const< T >
 for-each functor: divides operand by constant divisor. More...
 
struct  math::algo::foreach_matrix_mult< M, V >
 for-each functor: matrix-vector multiplication. More...
 
struct  math::algo::foreach_multiply_with_const< T >
 for-each functor: multiplies operand with constant factor. More...
 
struct  math::algo::foreach_substraction_with_const< T >
 for-each functor: substracts a constant value to operand. More...
 
struct  math::algo::IncrementGenerator< T >
 
struct  math::algo::InterleavedIter< T, S >
 Iterator that advances 'S' elements of type T. More...
 
struct  math::algo::predicate_epsilon_equal< T >
 Epsilon comparator predicate. More...
 

Namespaces

namespace  math
 Vector, Matrix, basic operations, etc.
 
namespace  math::algo
 Algorithms, functors, value interpolation, etc.
 

Functions

template<typename T >
math::algo::accum_absolute_sum (T const &init, T const &next)
 Absolute sum accumulator.
 
template<typename 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'.