this class is a functor for "for_each" algorithm More...
this class is a functor for "for_each" algorithm
This class is a functor for "for_each" algorithm. For each element of the boost::vector the operator() is called. Is mainly used to copy one encap into another encap object
encap | source |
encap | dst |
Definition at line 616 of file map_vector_sparse.hpp.
#include <map_vector_sparse.hpp>
Public Member Functions | |
sparse_vector_reduction (vector_data_type &vector_data_red, vector_data_type &vector_data, vector_data_type &vector_data_unsorted, vector_index_type &vector_data_map, vector_index_type2 &segment_offset, block_functor &blf, mgpu::ofp_context_t &context) | |
constructor More... | |
template<typename T > | |
void | operator() (T &t) const |
It call the copy function for each property. | |
Data Fields | |
vector_data_type & | vector_data_red |
Vector in which to the reduction. | |
vector_data_type & | vector_data |
new datas | |
vector_data_type & | vector_data_unsorted |
new data in an unsorted way | |
vector_index_type2 & | segment_offset |
segment of offsets | |
vector_index_type & | vector_data_map |
map of the data | |
block_functor & | blf |
block functor | |
mgpu::ofp_context_t & | context |
gpu context | |
|
inline |
constructor
src | source encapsulated object |
dst | source encapsulated object |
Definition at line 645 of file map_vector_sparse.hpp.