aimstil  5.0.5
til::linear_map< T, C > Class Template Reference

Linear mapping of a container. More...

#include <cathier/minTools.h>

Inheritance diagram for til::linear_map< T, C >:
Collaboration diagram for til::linear_map< T, C >:

Public Types

typedef detail::linear_map_base< T, C > Base
 
typedef Base::Container Container
 
- Public Types inherited from til::detail::linear_map_base< T, C >
typedef C< T > Container
 

Public Member Functions

operator[] (std::size_t i)
 
 linear_map (Container &data)
 
- Public Member Functions inherited from til::detail::linear_map_base< T, C >
 linear_map_base (Container &data)
 
Containerget ()
 
Container const & get () const
 

Detailed Description

template<class T, template< typename > class C>
class til::linear_map< T, C >

Linear mapping of a container.

Useful for optimization Note that this should not be the only way to pass arguments. E.g one could imagine to minimize on a vector and a matrix and thus needing help for mapping even though their is no outer container.

Definition at line 799 of file minTools.h.

Member Typedef Documentation

◆ Base

template<class T , template< typename > class C>
typedef detail::linear_map_base<T,C> til::linear_map< T, C >::Base

Definition at line 803 of file minTools.h.

◆ Container

template<class T , template< typename > class C>
typedef Base::Container til::linear_map< T, C >::Container

Definition at line 804 of file minTools.h.

Constructor & Destructor Documentation

◆ linear_map()

template<class T , template< typename > class C>
til::linear_map< T, C >::linear_map ( Container data)
inline

Definition at line 808 of file minTools.h.

Member Function Documentation

◆ operator[]()

template<class T , template< typename > class C>
T til::linear_map< T, C >::operator[] ( std::size_t  i)
inline

Definition at line 806 of file minTools.h.


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