Definition at line 46 of file map_vector_sparse_cuda_ker.cuh.
Public Types | |
typedef Ti | index_type |
typedef int | yes_has_check_device_pointer |
Indicate this structure has a function to check the device pointer. | |
Public Member Functions | |
vector_sparse_gpu_ker (vector_gpu_ker< aggregate< Ti >, layout_base > vct_index, vector_gpu_ker< T, layout_base > vct_data, vector_gpu_ker< aggregate< Ti >, layout_base > vct_add_index, vector_gpu_ker< aggregate< Ti >, layout_base > vct_rem_index, vector_gpu_ker< T, layout_base > vct_add_data, vector_gpu_ker< aggregate< Ti >, layout_base > vct_nadd_index, vector_gpu_ker< aggregate< Ti >, layout_base > vct_nrem_index, int nslot_add, int nslot_rem) | |
__device__ int | size () |
Get the number of elements. | |
__device__ void | init () |
This function must be called. | |
__device__ void | init_ins_inc () |
This function must be called. | |
__device__ void | init_rem_inc () |
This function must be called. | |
__device__ openfpm::sparse_index< Ti > | get_sparse (Ti id) const |
Get the sparse index. | |
template<unsigned int p> | |
__device__ auto | getBackground () const -> decltype(vct_data.template get< p >(0)) & |
Get the background value. | |
template<unsigned int p> | |
__device__ auto | get (Ti id) const -> decltype(vct_data.template get< p >(id)) |
Get an element of the vector. | |
__device__ auto | get (Ti id) const -> decltype(vct_data.get(0)) |
template<unsigned int p> | |
__device__ auto | get (openfpm::sparse_index< Ti > id) const -> decltype(vct_data.template get< p >(id.id)) |
Get an element of the vector. | |
template<unsigned int p> | |
__device__ auto | get (openfpm::sparse_index< Ti > id) -> decltype(vct_data.template get< p >(id.id)) |
Get an element of the vector. | |
__device__ Ti | get_index (openfpm::sparse_index< Ti > id) const |
Get the index associated to the element id. | |
template<unsigned int p> | |
__device__ auto | get (Ti id, Ti &di) const -> decltype(vct_data.template get< p >(id)) |
Get an element of the vector. | |
template<unsigned int p> | |
__device__ auto | get_ele (Ti di) const -> decltype(vct_data.template get< p >(di)) |
Get an element of the vector. | |
template<unsigned int p> | |
__device__ auto | insert (Ti ele) -> decltype(vct_data.template get< p >(0)) |
It insert an element in the sparse vector. | |
__device__ void | remove (Ti ele) |
It insert an element in the sparse vector. | |
__device__ auto | insert (Ti ele) -> decltype(vct_add_data.get(0)) |
It insert an element in the sparse vector. | |
__device__ void | remove_b (Ti ele, Ti slot_base) |
It insert an element in the sparse vector. | |
template<unsigned int p> | |
__device__ auto | insert_b (Ti ele, Ti slot_base) -> decltype(vct_data.template get< p >(0)) |
It insert an element in the sparse vector. | |
__device__ auto | insert_b (Ti ele, Ti slot_base) -> decltype(vct_add_data.get(0)) |
It insert an element in the sparse vector. | |
__device__ void | flush_block_insert () |
It insert an element in the sparse vector. | |
__device__ void | flush_block_remove () |
It insert an element in the sparse vector. | |
auto & | private_get_vct_nadd_index () |
__device__ void | flush_block_insert (Ti b, bool flusher) |
It insert an element in the sparse vector. | |
__device__ auto | private_get_data () -> decltype(vct_add_data.getBase().get_data_()) |
__device__ void | flush_block_remove (unsigned int b, bool flusher) |
It insert an element in the sparse vector. | |
__device__ auto | getAddDataBuffer () -> decltype(vct_add_data)& |
Get the data buffer. | |
__device__ auto | getDataBuffer () -> decltype(vct_data)& |
Get the data buffer. | |
__device__ auto | getAddIndexBuffer () const -> const decltype(vct_add_index)& |
Get the indices buffer. | |
__device__ auto | getIndexBuffer () const -> const decltype(vct_index)& |
Get the indices buffer. | |
__device__ auto | getDataBuffer () const -> const decltype(vct_data)& |
Get the data buffer. | |
Private Member Functions | |
__device__ void | _branchfree_search (Ti x, Ti &id) const |
get the element i | |
Private Attributes | |
vector_gpu_ker< aggregate< Ti >, layout_base > | vct_index |
vector_gpu_ker< T, layout_base > | vct_data |
vector_gpu_ker< aggregate< Ti >, layout_base > | vct_add_index |
vector_gpu_ker< aggregate< Ti >, layout_base > | vct_rem_index |
vector_gpu_ker< aggregate< Ti >, layout_base > | vct_nadd_index |
vector_gpu_ker< aggregate< Ti >, layout_base > | vct_nrem_index |
vector_gpu_ker< T, layout_base > | vct_add_data |
int | nslot_add |
int | nslot_rem |
typedef Ti openfpm::vector_sparse_gpu_ker< T, Ti, layout_base >::index_type |
Definition at line 96 of file map_vector_sparse_cuda_ker.cuh.
typedef int openfpm::vector_sparse_gpu_ker< T, Ti, layout_base >::yes_has_check_device_pointer |
Indicate this structure has a function to check the device pointer.
Definition at line 99 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Definition at line 101 of file map_vector_sparse_cuda_ker.cuh.
|
inlineprivate |
get the element i
search the element x
i | element i |
Definition at line 75 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
It insert an element in the sparse vector.
Definition at line 424 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
It insert an element in the sparse vector.
Definition at line 471 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
It insert an element in the sparse vector.
Definition at line 445 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
It insert an element in the sparse vector.
Definition at line 495 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get an element of the vector.
Get an element of the vector
p | Property to get |
id | Element to get |
Definition at line 255 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get an element of the vector.
Get an element of the vector
p | Property to get |
id | Element to get |
Definition at line 239 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Definition at line 221 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get an element of the vector.
Get an element of the vector
p | Property to get |
id | Element to get |
Definition at line 214 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get an element of the vector.
Get an element of the vector
p | Property to get |
id | Element to get |
Definition at line 282 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get an element of the vector.
Get an element of the vector
p | Property to get |
id | Element to get |
Definition at line 299 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get the index associated to the element id.
Definition at line 266 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get the sparse index.
Get the sparse index of the element id
id | Element to get |
Definition at line 185 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get the data buffer.
Definition at line 513 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get the indices buffer.
Definition at line 531 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get the background value.
Definition at line 198 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get the data buffer.
Definition at line 522 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get the data buffer.
Definition at line 549 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get the indices buffer.
Definition at line 540 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
This function must be called.
Definition at line 129 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
This function must be called.
Definition at line 145 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
This function must be called.
Definition at line 161 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
It insert an element in the sparse vector.
ele | element to insert |
Definition at line 355 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
It insert an element in the sparse vector.
Definition at line 309 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
It insert an element in the sparse vector.
Definition at line 408 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
It insert an element in the sparse vector.
Definition at line 392 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Definition at line 486 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Definition at line 462 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
It insert an element in the sparse vector.
ele | element to insert |
Definition at line 333 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
It insert an element in the sparse vector.
Definition at line 375 of file map_vector_sparse_cuda_ker.cuh.
|
inline |
Get the number of elements.
Definition at line 121 of file map_vector_sparse_cuda_ker.cuh.
|
private |
Definition at line 66 of file map_vector_sparse_cuda_ker.cuh.
|
private |
Definition at line 67 of file map_vector_sparse_cuda_ker.cuh.
|
private |
Definition at line 60 of file map_vector_sparse_cuda_ker.cuh.
|
private |
Definition at line 52 of file map_vector_sparse_cuda_ker.cuh.
|
private |
Definition at line 50 of file map_vector_sparse_cuda_ker.cuh.
|
private |
Definition at line 48 of file map_vector_sparse_cuda_ker.cuh.
|
private |
Definition at line 56 of file map_vector_sparse_cuda_ker.cuh.
|
private |
Definition at line 58 of file map_vector_sparse_cuda_ker.cuh.
|
private |
Definition at line 54 of file map_vector_sparse_cuda_ker.cuh.