OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl > 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_type_reo, typename vector_reduction, unsigned int impl>
struct openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl >

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 417 of file map_vector_sparse.hpp.

#include <map_vector_sparse.hpp>

Public Member Functions

 sparse_vector_reduction_cpu (vector_data_type &vector_data_red, vector_data_type &vector_data, vector_index_type &vector_index, vector_index_type_reo &reorder_add_index_cpu)
 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
 Vector in which to the reduction.
 
vector_index_type_reo & reorder_add_index_cpu
 reorder vector index
 
vector_index_type & vector_index
 Index type vector.
 

Constructor & Destructor Documentation

◆ sparse_vector_reduction_cpu()

template<typename vector_data_type , typename vector_index_type , typename vector_index_type_reo , typename vector_reduction , unsigned int impl>
openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl >::sparse_vector_reduction_cpu ( vector_data_type &  vector_data_red,
vector_data_type &  vector_data,
vector_index_type &  vector_index,
vector_index_type_reo &  reorder_add_index_cpu 
)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 437 of file map_vector_sparse.hpp.

Member Function Documentation

◆ operator()()

template<typename vector_data_type , typename vector_index_type , typename vector_index_type_reo , typename vector_reduction , unsigned int impl>
template<typename T >
void openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl >::operator() ( T &  t) const
inline

It call the copy function for each property.

Definition at line 446 of file map_vector_sparse.hpp.

Field Documentation

◆ reorder_add_index_cpu

template<typename vector_data_type , typename vector_index_type , typename vector_index_type_reo , typename vector_reduction , unsigned int impl>
vector_index_type_reo& openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl >::reorder_add_index_cpu

reorder vector index

Definition at line 426 of file map_vector_sparse.hpp.

◆ vector_data

template<typename vector_data_type , typename vector_index_type , typename vector_index_type_reo , typename vector_reduction , unsigned int impl>
vector_data_type& openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl >::vector_data

Vector in which to the reduction.

Definition at line 423 of file map_vector_sparse.hpp.

◆ vector_data_red

template<typename vector_data_type , typename vector_index_type , typename vector_index_type_reo , typename vector_reduction , unsigned int impl>
vector_data_type& openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl >::vector_data_red

Vector in which to the reduction.

Definition at line 420 of file map_vector_sparse.hpp.

◆ vector_index

template<typename vector_data_type , typename vector_index_type , typename vector_index_type_reo , typename vector_reduction , unsigned int impl>
vector_index_type& openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl >::vector_index

Index type vector.

Definition at line 429 of file map_vector_sparse.hpp.


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