Public Member Functions | Public Attributes

OpenTissue::math::optimization::Projection< T, bound_function_type > Class Template Reference

#include <optimization_project.h>

List of all members.

Public Member Functions

 Projection (bound_function_type const &l, bound_function_type const &u)
bool operator() (boost::numeric::ublas::vector< T > &x) const
bool operator() (boost::numeric::ublas::vector< T > const &x, boost::numeric::ublas::vector< T > &x_new) const

Public Attributes

bound_function_type const & m_l
bound_function_type const & m_u

Detailed Description

template<typename T, typename bound_function_type>
class OpenTissue::math::optimization::Projection< T, bound_function_type >

Projection Operator Class. This class conveniently hides the lower and upper bounds for the projection-function and wraps it all into one single ``operator''.

Intended usage is:

vector_type x; bound_function_type l; bound_function_type u; Projection<T,bound_function_type> P(l,u); ... do something with x .... while(projection(x));


Constructor & Destructor Documentation

template<typename T, typename bound_function_type>
OpenTissue::math::optimization::Projection< T, bound_function_type >::Projection ( bound_function_type const &  l,
bound_function_type const &  u 
) [inline]

Member Function Documentation

template<typename T, typename bound_function_type>
bool OpenTissue::math::optimization::Projection< T, bound_function_type >::operator() ( boost::numeric::ublas::vector< T > &  x  )  const [inline]
template<typename T, typename bound_function_type>
bool OpenTissue::math::optimization::Projection< T, bound_function_type >::operator() ( boost::numeric::ublas::vector< T > const &  x,
boost::numeric::ublas::vector< T > &  x_new 
) const [inline]

Member Data Documentation

template<typename T, typename bound_function_type>
bound_function_type const& OpenTissue::math::optimization::Projection< T, bound_function_type >::m_l
template<typename T, typename bound_function_type>
bound_function_type const& OpenTissue::math::optimization::Projection< T, bound_function_type >::m_u

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