OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
openfpm::sparse_vector_reduction< vector_data_type, vector_index_type, vector_index_type2, vector_reduction, block_functor, impl2, pSegment > Struct Template Reference

this class is a functor for "for_each" algorithm More...

Detailed Description

template<typename vector_data_type, typename vector_index_type, typename vector_index_type2, typename vector_reduction, typename block_functor, unsigned int impl2, unsigned int pSegment = 1>
struct openfpm::sparse_vector_reduction< vector_data_type, vector_index_type, vector_index_type2, vector_reduction, block_functor, impl2, pSegment >

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

Template Parameters
encapsource
encapdst

Definition at line 614 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, gpu::ofp_context_t &context)
 constructor
 
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
 
gpu::ofp_context_tcontext
 gpu context
 

Constructor & Destructor Documentation

◆ sparse_vector_reduction()

template<typename vector_data_type , typename vector_index_type , typename vector_index_type2 , typename vector_reduction , typename block_functor , unsigned int impl2, unsigned int pSegment = 1>
openfpm::sparse_vector_reduction< vector_data_type, vector_index_type, vector_index_type2, vector_reduction, block_functor, impl2, pSegment >::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,
gpu::ofp_context_t context 
)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 643 of file map_vector_sparse.hpp.

Member Function Documentation

◆ operator()()

template<typename vector_data_type , typename vector_index_type , typename vector_index_type2 , typename vector_reduction , typename block_functor , unsigned int impl2, unsigned int pSegment = 1>
template<typename T >
void openfpm::sparse_vector_reduction< vector_data_type, vector_index_type, vector_index_type2, vector_reduction, block_functor, impl2, pSegment >::operator() ( T &  t) const
inline

It call the copy function for each property.

Definition at line 661 of file map_vector_sparse.hpp.

Field Documentation

◆ blf

template<typename vector_data_type , typename vector_index_type , typename vector_index_type2 , typename vector_reduction , typename block_functor , unsigned int impl2, unsigned int pSegment = 1>
block_functor& openfpm::sparse_vector_reduction< vector_data_type, vector_index_type, vector_index_type2, vector_reduction, block_functor, impl2, pSegment >::blf

block functor

Definition at line 632 of file map_vector_sparse.hpp.

◆ context

template<typename vector_data_type , typename vector_index_type , typename vector_index_type2 , typename vector_reduction , typename block_functor , unsigned int impl2, unsigned int pSegment = 1>
gpu::ofp_context_t& openfpm::sparse_vector_reduction< vector_data_type, vector_index_type, vector_index_type2, vector_reduction, block_functor, impl2, pSegment >::context

gpu context

Definition at line 635 of file map_vector_sparse.hpp.

◆ segment_offset

template<typename vector_data_type , typename vector_index_type , typename vector_index_type2 , typename vector_reduction , typename block_functor , unsigned int impl2, unsigned int pSegment = 1>
vector_index_type2& openfpm::sparse_vector_reduction< vector_data_type, vector_index_type, vector_index_type2, vector_reduction, block_functor, impl2, pSegment >::segment_offset

segment of offsets

Definition at line 626 of file map_vector_sparse.hpp.

◆ vector_data

template<typename vector_data_type , typename vector_index_type , typename vector_index_type2 , typename vector_reduction , typename block_functor , unsigned int impl2, unsigned int pSegment = 1>
vector_data_type& openfpm::sparse_vector_reduction< vector_data_type, vector_index_type, vector_index_type2, vector_reduction, block_functor, impl2, pSegment >::vector_data

new datas

Definition at line 620 of file map_vector_sparse.hpp.

◆ vector_data_map

template<typename vector_data_type , typename vector_index_type , typename vector_index_type2 , typename vector_reduction , typename block_functor , unsigned int impl2, unsigned int pSegment = 1>
vector_index_type& openfpm::sparse_vector_reduction< vector_data_type, vector_index_type, vector_index_type2, vector_reduction, block_functor, impl2, pSegment >::vector_data_map

map of the data

Definition at line 629 of file map_vector_sparse.hpp.

◆ vector_data_red

template<typename vector_data_type , typename vector_index_type , typename vector_index_type2 , typename vector_reduction , typename block_functor , unsigned int impl2, unsigned int pSegment = 1>
vector_data_type& openfpm::sparse_vector_reduction< vector_data_type, vector_index_type, vector_index_type2, vector_reduction, block_functor, impl2, pSegment >::vector_data_red

Vector in which to the reduction.

Definition at line 617 of file map_vector_sparse.hpp.

◆ vector_data_unsorted

template<typename vector_data_type , typename vector_index_type , typename vector_index_type2 , typename vector_reduction , typename block_functor , unsigned int impl2, unsigned int pSegment = 1>
vector_data_type& openfpm::sparse_vector_reduction< vector_data_type, vector_index_type, vector_index_type2, vector_reduction, block_functor, impl2, pSegment >::vector_data_unsorted

new data in an unsorted way

Definition at line 623 of file map_vector_sparse.hpp.


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