CLUEstering
High-performance density-based weighted clustering library developed at CERN
Loading...
Searching...
No Matches
clue::PointsHost< Ndim > Class Template Reference

The PointsHost class is a data structure that manages points in host memory. It provides methods to allocate, access, and manipulate points in host memory. More...

#include <PointsHost.hpp>

Public Member Functions

template<concepts::queue TQueue>
 PointsHost (TQueue &queue, int32_t n_points)
 
template<concepts::queue TQueue>
 PointsHost (TQueue &queue, int32_t n_points, std::span< std::byte > buffer)
 
template<concepts::queue TQueue, std::ranges::contiguous_range... TBuffers>
requires (sizeof...(TBuffers) == 2 || sizeof...(TBuffers) == 4)
 PointsHost (TQueue &queue, int32_t n_points, TBuffers &&... buffers)
 
template<concepts::queue TQueue, concepts::contiguous_raw_data... TBuffers>
requires (sizeof...(TBuffers) == 2 || sizeof...(TBuffers) == 4)
 PointsHost (TQueue &queue, int32_t n_points, TBuffers... buffers)
 
 PointsHost (const PointsHost &)=delete
 
PointsHostoperator= (const PointsHost &)=delete
 
 PointsHost (PointsHost &&)=default
 
PointsHostoperator= (PointsHost &&)=default
 
ALPAKA_FN_HOST int32_t size () const
 
ALPAKA_FN_HOST std::span< const float > coords () const
 
ALPAKA_FN_HOST std::span< float > coords ()
 
ALPAKA_FN_HOST std::span< const float > coords (size_t dim) const
 
ALPAKA_FN_HOST std::span< float > coords (size_t dim)
 
ALPAKA_FN_HOST std::span< const float > weights () const
 
ALPAKA_FN_HOST std::span< float > weights ()
 
ALPAKA_FN_HOST std::span< const int > clusterIndexes () const
 
ALPAKA_FN_HOST std::span< int > clusterIndexes ()
 
ALPAKA_FN_HOST std::span< const int > isSeed () const
 
ALPAKA_FN_HOST std::span< int > isSeed ()
 
ALPAKA_FN_HOST const PointsView * view () const
 
ALPAKA_FN_HOST PointsView * view ()
 

Friends

template<concepts::queue _TQueue, uint8_t _Ndim, concepts::device _TDev>
void copyToHost (_TQueue &queue, PointsHost< _Ndim > &h_points, const PointsDevice< _Ndim, _TDev > &d_points)
 
template<concepts::queue _TQueue, uint8_t _Ndim, concepts::device _TDev>
void copyToDevice (_TQueue &queue, PointsDevice< _Ndim, _TDev > &d_points, const PointsHost< _Ndim > &h_points)
 

Detailed Description

template<uint8_t Ndim>
class clue::PointsHost< Ndim >

The PointsHost class is a data structure that manages points in host memory. It provides methods to allocate, access, and manipulate points in host memory.

Template Parameters
NdimThe number of dimensions of the points to manage

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