OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
openfpm::sparse_vector_special< vector_data_type, vector_index_type, vector_reduction > 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_reduction>
struct openfpm::sparse_vector_special< vector_data_type, vector_index_type, vector_reduction >

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

#include <map_vector_sparse.hpp>

Public Member Functions

 sparse_vector_special (vector_data_type &vector_data_red, vector_data_type &vector_data, vector_index_type &segment_offset, 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
 Vector in which to the reduction.
 
vector_index_type & segment_offset
 segment of offsets
 
gpu::ofp_context_tcontext
 gpu context
 

Constructor & Destructor Documentation

◆ sparse_vector_special()

template<typename vector_data_type , typename vector_index_type , typename vector_reduction >
openfpm::sparse_vector_special< vector_data_type, vector_index_type, vector_reduction >::sparse_vector_special ( vector_data_type &  vector_data_red,
vector_data_type &  vector_data,
vector_index_type &  segment_offset,
gpu::ofp_context_t context 
)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 747 of file map_vector_sparse.hpp.

Member Function Documentation

◆ operator()()

template<typename vector_data_type , typename vector_index_type , typename vector_reduction >
template<typename T >
void openfpm::sparse_vector_special< vector_data_type, vector_index_type, vector_reduction >::operator() ( T &  t) const
inline

It call the copy function for each property.

Definition at line 756 of file map_vector_sparse.hpp.

Field Documentation

◆ context

template<typename vector_data_type , typename vector_index_type , typename vector_reduction >
gpu::ofp_context_t& openfpm::sparse_vector_special< vector_data_type, vector_index_type, vector_reduction >::context

gpu context

Definition at line 739 of file map_vector_sparse.hpp.

◆ segment_offset

template<typename vector_data_type , typename vector_index_type , typename vector_reduction >
vector_index_type& openfpm::sparse_vector_special< vector_data_type, vector_index_type, vector_reduction >::segment_offset

segment of offsets

Definition at line 736 of file map_vector_sparse.hpp.

◆ vector_data

template<typename vector_data_type , typename vector_index_type , typename vector_reduction >
vector_data_type& openfpm::sparse_vector_special< vector_data_type, vector_index_type, vector_reduction >::vector_data

Vector in which to the reduction.

Definition at line 733 of file map_vector_sparse.hpp.

◆ vector_data_red

template<typename vector_data_type , typename vector_index_type , typename vector_reduction >
vector_data_type& openfpm::sparse_vector_special< vector_data_type, vector_index_type, vector_reduction >::vector_data_red

Vector in which to the reduction.

Definition at line 730 of file map_vector_sparse.hpp.


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